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

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

Definition at line 82 of file mainShowImSet.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::ImageSet::IxsDocument::GetImageSet(), Impala::CmdOptions::GetInstance(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::CmdOptions::GetString(), ILOG_INFO, Impala::Core::Table::SimilarityTableSet::MakeFromFile(), Impala::Core::ImageSet::MakeIxsDocument(), mConceptRanking, mIxsDoc, mThumbHeight, mThumbWidth, and Impala::Core::ImageSet::ImageSet::SetImageSrc().

Referenced by WindowShowImSet().

00083     {
00084         CmdOptions& options = CmdOptions::GetInstance();
00085         String imSetName = options.GetString("imageSet");
00086         mIxsDoc = Core::ImageSet::MakeIxsDocument(imSetName);
00087         //mSegDoc = Core::VideoSet::MakeSegmentationDocument(videoSetName);
00088         
00089         Core::ImageSet::ImageSet* imSetThumb = mIxsDoc->GetImageSet();
00090         imSetThumb->SetImageSrc(options.GetBool("imArchive"),
00091                                 options.GetBool("imFileArchive"),
00092                                 options.GetBool("imSplitArchive"));
00093         if (imSetThumb)
00094         {
00095             Core::Array::Array2dVec3UInt8* im = imSetThumb->GetImage(0);
00096             mThumbWidth = im->CW();
00097             mThumbHeight = im->CH();
00098             delete im;
00099         }
00100 
00101         String conceptSetName = options.GetString("conceptSet");
00102         mConceptRanking = 0;
00103         if (!conceptSetName.empty())
00104         {
00105             String model = options.GetString("conceptModel");
00106             String feature = options.GetString("conceptFeature");
00107             ILOG_INFO("reading concept similarity set");
00108 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00109             mConceptRanking = Core::Table::SimilarityTableSet::MakeFromFile
00110                 (mIxsDoc->GetImageSet(), conceptSetName, model, feature);
00111 #else // REPOSITORY_USED
00112             typedef Persistency::SimilarityTableSetLocator SimLoc;
00113             SimLoc loc(mIxsDoc->GetImageSet()->GetLocator(), true, "",
00114                        conceptSetName, model, feature, "");
00115             mConceptRanking = Persistency::SimilarityTableSetRepository().Get(loc);
00116 #endif // REPOSITORY_USED
00117         }
00118     }

Here is the call graph for this function:


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