Definition at line 1347 of file SegmentationDocumentGuiAnno.h. References ConstructShotRanking(), Impala::Core::Database::RawDataSet::GetContainerFile(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::DataDocument::GetDataSet(), Impala::Core::Database::RawDataSet::GetFilePathSimilarityData(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::Core::Table::SimilarityTableSet::MakeFromFile(), mCurFile, mRankAll, mRankFeature, mRankModel, mRankSet, mSegDoc, mShotSimSet, and mSimSet. Referenced by CheckNewVideo(). 01348 { 01349 Core::Database::RawDataSet* dataSet = mSegDoc->GetDataSet(); 01350 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 01351 Util::Database* db = dataSet->GetDatabase(); 01352 01353 String simNames = 01354 dataSet->GetFilePathSimilarityData("Frames", "streamConcepts.txt", 01355 "no_model", "direct", mCurFile, 01356 "names.txt", false, false); 01357 if (mShotSimSet) 01358 delete mShotSimSet; 01359 mShotSimSet = SimilarityTableSet::MakeFromFile(simNames, db); 01360 01361 // Obtain ranking similarities. Artificial randomizing access in mRankingMode 01362 simNames = dataSet->GetFilePathSimilarityData 01363 ("Keyframes",mRankSet,mRankModel,mRankFeature,mCurFile, 01364 "names.txt",false,false); 01365 if (mSimSet) 01366 delete mSimSet; 01367 mSimSet = 0; 01368 if (!simNames.empty()) 01369 mSimSet = SimilarityTableSet::MakeFromFile(simNames, db); 01370 #else // REPOSITORY_USED 01371 typedef Persistency::SimilarityTableSetLocator SimLoc; 01372 SimLoc loc(dataSet->GetLocator(), false, "Frames", "streamConcepts.txt", 01373 "no_model", "direct", dataSet->GetContainerFile(mCurFile)); 01374 if (mShotSimSet) 01375 delete mShotSimSet; 01376 mShotSimSet = Persistency::SimilarityTableSetRepository().Get(loc); 01377 01378 // Obtain ranking similarities. Artificial randomizing access in mRankingMode 01379 loc = SimLoc(dataSet->GetLocator(), false, "Keyframes", mRankSet, 01380 mRankModel, mRankFeature, 01381 dataSet->GetContainerFile(mCurFile)); 01382 if (mSimSet) 01383 delete mSimSet; 01384 mSimSet = 0; 01385 mSimSet = Persistency::SimilarityTableSetRepository().Get(loc); 01386 #endif // REPOSITORY_USED 01387 ConstructShotRanking(!mRankAll); 01388 }
Here is the call graph for this function:
|