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

void Impala::Application::Repository::DoDumpImageArchiveSpecial (  ) 

Definition at line 1309 of file mainRepository.cpp.

References Impala::Persistency::ImageArchiveLocator::GetContainer(), GetImageArchiveSpecialLocator(), GetImageSetLocator(), Impala::CmdOptions::GetInstance(), ILOG_VAR, and Impala::Persistency::ImageArchiveLocator::SetContainer().

Referenced by mainRepository().

01310 {
01311     ILOG_VAR(Impala.Application.Repository.DoDumpImageArchiveSpecial);
01312     CmdOptions& options = CmdOptions::GetInstance();
01313 
01314     ImageArchiveLocator loc = GetImageArchiveSpecialLocator(options, true);
01315     ImageSetLocator imSetLoc = GetImageSetLocator(options, true);
01316     ImageSet* imSet = ImageSetRepository().Get(imSetLoc);
01317     String container = loc.GetContainer();
01318     int nrArchives = (container == "ALL") ? imSet->GetNrContainers() : 1;
01319     for (int i=0 ; i<nrArchives ; i++)
01320     {
01321         String cur = (container == "ALL") ? imSet->GetContainer(i) : container;
01322         loc.SetContainer(cur);
01323         ImageArchive* archive = ImageArchiveRepository().Get(loc);
01324         std::cout << loc << " has " << archive->NrImages() << " images"
01325                   << std::endl;
01326         if (archive->NrImages() > 0)
01327         {
01328             Core::Array::Array2dVec3UInt8* im = archive->ReadImage(0);
01329             std::cout << "ImageSize = " << im->CW() << "x" << im->CH()
01330                       << std::endl;
01331             delete im;
01332         }
01333         delete archive;
01334     }
01335     delete imSet;
01336 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:47 2011 for ImpalaSrc by  doxygen 1.5.1