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

void Impala::Application::Repository::DoDumpImageArchive (  ) 

Definition at line 467 of file mainRepository.cpp.

References Impala::Persistency::ImageArchiveLocator::GetContainer(), GetImageArchiveLocator(), Impala::CmdOptions::GetInstance(), GetVideoSet(), ILOG_VAR, Impala::Persistency::ImageArchiveLocator::SetContainer(), and Impala::Persistency::ImageArchiveLocator::SetQuid().

Referenced by mainRepository().

00468 {
00469     ILOG_VAR(Impala.Application.Repository.DoDumpImageArchive);
00470     CmdOptions& options = CmdOptions::GetInstance();
00471 
00472     ImageArchiveLocator loc = GetImageArchiveLocator(options, true);
00473     VideoSet* vidSet = GetVideoSet(options, true);
00474     String container = loc.GetContainer();
00475     int nrArchives = (container == "ALL") ? vidSet->NrFiles() : 1;
00476     for (int i=0 ; i<nrArchives ; i++)
00477     {
00478         String cur = (container == "ALL") ? vidSet->GetFile(i) : container;
00479         loc.SetContainer(cur);
00480         int v = vidSet->GetFileId(cur);
00481         Quid quid = (v != -1) ? vidSet->GetQuidVideo(v, false) : 0;
00482         loc.SetQuid(quid);
00483         ImageArchive* archive = ImageArchiveRepository().Get(loc);
00484         std::cout << loc << " has " << archive->NrImages() << " images"
00485                   << std::endl;
00486         if (archive->NrImages() > 0)
00487         {
00488             Core::Array::Array2dVec3UInt8* im = archive->ReadImage(0);
00489             std::cout << "ImageSize = " << im->CW() << "x" << im->CH()
00490                       << std::endl;
00491             delete im;
00492         }
00493         delete archive;
00494     }
00495     delete vidSet;
00496 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:47:56 2010 for ImpalaSrc by  doxygen 1.5.1