Definition at line 398 of file AllFramesTLineVideo.h. References Impala::Core::Database::DataDocument::GetConcept(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathAnnotation(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::Core::VideoSet::SegmentationDocument::GetVideoSet(), Impala::Core::Table::AnnotationTable::MakeFromFile(), mAnnoTables, mConceptAnnotations, mSegDoc, Impala::Core::Database::DataDocument::NrConcepts(), and Impala::QUID_CLASS_FRAME. Referenced by Init(). 00399 { 00400 AnnotationTable *anno; 00401 00402 for (int i=0; i<mSegDoc->NrConcepts(); i++) 00403 { 00404 anno = 0; 00405 Core::VideoSet::VideoSet* vidSet = mSegDoc->GetVideoSet(); 00406 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00407 std::string fName = vidSet->GetFilePathAnnotation 00408 (QUID_CLASS_FRAME, mConceptAnnotations, 00409 mSegDoc->GetConcept(i)+".tab", false, true); 00410 if (fName.empty()) 00411 printf("No annotions for %s\n", mSegDoc->GetConcept(i).c_str()); 00412 else 00413 anno = Core::Table::AnnotationTable::MakeFromFile 00414 (mSegDoc->GetConcept(i), fName, vidSet->GetDatabase()); 00415 #else // REPOSITORY_USED 00416 typedef Persistency::AnnotationTableLocator AnnoLoc; 00417 AnnoLoc loc(vidSet->GetLocator(), QUID_CLASS_FRAME, 00418 mConceptAnnotations, mSegDoc->GetConcept(i)); 00419 if (Persistency::AnnotationTableRepository().Exists(loc)) 00420 anno = Persistency::AnnotationTableRepository().Get(loc); 00421 #endif // REPOSITORY_USED 00422 if (anno) 00423 mAnnoTables.push_back(anno); 00424 } 00425 }
Here is the call graph for this function: ![]()
|