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

void Impala::Application::VideoExcel::TableDataSourceTrec::Init (  )  [inline, private]

Definition at line 83 of file TableDataSourceTrec.h.

References Impala::Application::VideoExcel::TableDataSource::AddColumn(), Impala::Application::VideoExcel::TableDataSource::AddStaticColumn(), Impala::Application::IDash::TrecEngine::GetKeyframes(), Impala::Core::VideoSet::Keyframes::GetNrKeyframes(), Impala::Application::IDash::TrecEngine::GetNrTables(), Impala::Application::IDash::TrecEngine::GetTableName(), ILOG_DEBUG, ILOG_ERROR, max, mColmap, Impala::Application::VideoExcel::TableDataSource::mFilteredRows, mKeyframes, Impala::Application::VideoExcel::TableDataSource::mTotalRows, mTrecEngine, Impala::Application::VideoExcel::TableDataSource::TYPE_IMAGE, Impala::Application::VideoExcel::TableDataSource::TYPE_NORMALIZEDVALUE, and Impala::Application::VideoExcel::TableDataSource::TYPE_TEXT.

Referenced by TableDataSourceTrec().

00084     {
00085         mTrecEngine = new IDash::TrecEngine();
00086         mKeyframes  = mTrecEngine->GetKeyframes();
00087 
00088         if (!mKeyframes)
00089             ILOG_ERROR("Set does not have keyframes.");
00090 
00091         mFilteredRows = mTotalRows = mKeyframes->GetNrKeyframes();
00092         ILOG_DEBUG("Trec engine loaded, displaying all keyframes: " <<
00093                    mFilteredRows);
00094 
00095         AddStaticColumn("rank", TYPE_TEXT, 50);
00096         AddStaticColumn("image", TYPE_IMAGE, 120);
00097         AddStaticColumn("name", TYPE_TEXT, 120);
00098         AddStaticColumn("type", TYPE_TEXT, 100);
00099         AddStaticColumn("isrkf", TYPE_NORMALIZEDVALUE, 20, 1);
00100         AddStaticColumn("keyframes", TYPE_TEXT, 30);
00101 
00102         int max = 22;
00103         for (int i=0; i<mTrecEngine->GetNrTables(); i++)
00104         {
00105             AddColumn(mTrecEngine->GetTableName(i),TYPE_NORMALIZEDVALUE,20,4);
00106             mColmap[mTrecEngine->GetTableName(i)] = i;
00107             if (i > max)
00108                 break;
00109         }
00110 
00111         /*
00112         AddColumn("filename", TYPE_TEXT, 300);
00113         AddColumn("red", TYPE_NORMALIZEDVALUE, 50, 1);
00114         AddColumn("green", TYPE_NORMALIZEDVALUE, 50, 2);
00115         AddColumn("blue", TYPE_NORMALIZEDVALUE, 50, 3);
00116         */
00117     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:54:17 2010 for ImpalaSrc by  doxygen 1.5.1