Definition at line 22 of file BayesFusion.h. References conceptSimTable, genreSimTable, Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Table::SimilarityTableSet::GetQuidTable(), Impala::Core::Table::SimilarityTableSet::MakeFromFile(), mConceptPath, mConceptSimSet, Impala::Core::Table::Bayes::mEnd, mGenrePath, mGenreSimSet, mKeyframes, mQuidTable, Impala::Core::Table::Bayes::mSetName, Impala::Core::Table::Bayes::mTableSize, Impala::Core::Table::Bayes::mVidSet, mWriteTable, and Impala::Core::Table::Table::Size(). 00024 : 00025 Bayes(annoSetName, setName, genreSet, conceptSet, quid, nStart, nEnd) 00026 { 00027 00028 mSetName = setName; 00029 00030 mGenrePath = genrePath; 00031 mConceptPath = conceptPath; 00032 00033 // Note: mVidSet has been initialized in Bayes class 00034 mKeyframes = new Core::VideoSet::Keyframes(mVidSet, "keyframes"); 00035 00036 mGenreSimSet = Core::Table::SimilarityTableSet::MakeFromFile(genrePath, mVidSet->GetDatabase()); 00037 00038 mConceptSimSet = Core::Table::SimilarityTableSet::MakeFromFile(conceptPath, mVidSet->GetDatabase()); 00039 00040 mQuidTable = mGenreSimSet->GetQuidTable(); 00041 mTableSize = mQuidTable->Size(); 00042 00043 Core::Table::QuidTable* conceptQuidTable = mConceptSimSet->GetQuidTable(); 00044 int conceptTableSize = conceptQuidTable->Size(); 00045 00046 //_ASSERT(mTableSize == conceptTableSize); 00047 if (mTableSize != conceptTableSize) 00048 { 00049 printf("ERROR: Quid Table is NOT the same for concept and genre.\n"); 00050 return; 00051 } 00052 00053 00054 if ((mEnd == -1) || (mEnd > mQuidTable->Size())) 00055 mEnd = mQuidTable->Size(); 00056 00057 mWriteTable = bWriteTable; 00058 00059 genreSimTable = NULL; 00060 conceptSimTable = NULL; 00061 00062 }
Here is the call graph for this function:
|