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

void Impala::Application::WindowShowVidSet::InitData (  )  [inline, private]

Definition at line 106 of file mainShowVidSet.cpp.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::CmdOptions::GetBool(), Impala::Core::ImageSet::ImageSet::GetImage(), Impala::Core::VideoSet::SegmentationDocument::GetImSetKeyframes(), Impala::CmdOptions::GetInstance(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::CmdOptions::GetString(), Impala::Core::VideoSet::SegmentationDocument::GetVideoSet(), ILOG_INFO, Impala::Core::Feature::FeatureTableSet::MakeFromFile(), Impala::Core::Table::SimilarityTableSet::MakeFromFile(), Impala::Core::VideoSet::MakeSegmentationDocument(), mConceptRanking, mFeatureSet, mSegDoc, mShowAnno, mShowAnnoControl, mShowTimeLineVideo, mThumbHeight, and mThumbWidth.

Referenced by WindowShowVidSet().

00107     {
00108         CmdOptions& options = CmdOptions::GetInstance();
00109         mShowAnno = options.GetBool("showAnno");
00110         mShowTimeLineVideo = options.GetBool("timeLineVideo");
00111         mShowAnnoControl = options.GetBool("annotateControl");
00112         String videoSetName = options.GetString("videoSet");
00113         mSegDoc = Core::VideoSet::MakeSegmentationDocument(videoSetName);
00114         Core::ImageSet::ImageSet* imSetThumb = mSegDoc->GetImSetKeyframes(true);
00115         if (imSetThumb)
00116         {
00117             Core::Array::Array2dVec3UInt8* im = imSetThumb->GetImage(0);
00118             mThumbWidth = im->CW();
00119             mThumbHeight = im->CH();
00120             delete im;
00121         }
00122         String conceptSetName = options.GetString("conceptSet");
00123         mConceptRanking = 0;
00124         if (!conceptSetName.empty())
00125         {
00126             String model = options.GetString("conceptModel");
00127             String feature = options.GetString("conceptFeature");
00128             ILOG_INFO("reading concept similarity set");
00129 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00130             mConceptRanking = Core::Table::SimilarityTableSet::MakeFromFile
00131                 (mSegDoc->GetVideoSet(), conceptSetName, model, feature);
00132 #else // REPOSITORY_USED
00133             typedef Persistency::SimilarityTableSetLocator SimLoc;
00134             SimLoc loc(mSegDoc->GetVideoSet()->GetLocator(), true, "Keyframes",
00135                        conceptSetName, model, feature, "");
00136             mConceptRanking = Persistency::SimilarityTableSetRepository().Get(loc);
00137 #endif // REPOSITORY_USED
00138         }
00139         String featureSetName = options.GetString("featureSet");
00140         mFeatureSet = 0;
00141         if (!featureSetName.empty())
00142         {
00143             ILOG_INFO("reading feature set");
00144 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00145             mFeatureSet =
00146                 Core::Feature::FeatureTableSet::MakeFromFile("FeatureIndex",
00147                                                              true,
00148                                                              featureSetName, 
00149                                                              mSegDoc->GetVideoSet());
00150 #else // REPOSITORY_USED
00151             typedef Persistency::FeatureLocator FeatLoc;
00152             FeatLoc loc(mSegDoc->GetVideoSet()->GetLocator(), false, true,
00153                         "", featureSetName, "");
00154             mFeatureSet = Persistency::FeatureTableSetRepository().Get(loc);
00155 #endif // REPOSITORY_USED
00156         }
00157     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:14:31 2011 for ImpalaSrc by  doxygen 1.5.1