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

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

Definition at line 104 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, mThumbWidth, and Impala::Core::ImageSet::ImageSet::SetImageSrc().

Referenced by WindowShowVidSet().

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

Here is the call graph for this function:


Generated on Fri Mar 19 10:37:59 2010 for ImpalaSrc by  doxygen 1.5.1