Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

Impala::Core::Table::BayesFusion::BayesFusion ( String  annoSetName,
String  genreSet,
String  conceptSet,
String  quid,
String  setName,
String  genrePath,
String  conceptPath,
int  nStart,
int  nEnd,
bool  bWriteTable 
) [inline]

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, Impala::Core::Table::Bayes::mImgSet, Impala::Core::Table::Bayes::mIsImageSet, 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/mImgSet has been initialized in Bayes class
00034         if (mIsImageSet)
00035         {
00036             mGenreSimSet = Core::Table::SimilarityTableSet::MakeFromFile(genrePath, mImgSet->GetDatabase());
00037             mConceptSimSet = Core::Table::SimilarityTableSet::MakeFromFile(conceptPath, mImgSet->GetDatabase());
00038         }
00039         else
00040         {
00041             mKeyframes = new Core::VideoSet::Keyframes(mVidSet, "keyframes"); 
00042             mGenreSimSet = Core::Table::SimilarityTableSet::MakeFromFile(genrePath, mVidSet->GetDatabase());
00043             mConceptSimSet = Core::Table::SimilarityTableSet::MakeFromFile(conceptPath, mVidSet->GetDatabase());
00044         }
00045         mQuidTable = mGenreSimSet->GetQuidTable();
00046         mTableSize = mQuidTable->Size();
00047 
00048         Core::Table::QuidTable* conceptQuidTable = mConceptSimSet->GetQuidTable();
00049         int conceptTableSize = conceptQuidTable->Size();
00050 
00051         //_ASSERT(mTableSize == conceptTableSize);
00052         if (mTableSize != conceptTableSize)
00053         {
00054             printf("ERROR: Quid Table is NOT the same for concept and genre.\n");
00055             return;
00056         }
00057 
00058 
00059         if ((mEnd == -1) || (mEnd > mQuidTable->Size()))
00060             mEnd = mQuidTable->Size();
00061 
00062         mWriteTable = bWriteTable;
00063 
00064         genreSimTable = NULL;
00065         conceptSimTable = NULL;
00066 
00067     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:48 2011 for ImpalaSrc by  doxygen 1.5.1