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

void Impala::Application::Repository::DoDumpSegmentation (  ) 

Definition at line 285 of file mainRepository.cpp.

References Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), GetSegmentationLocator(), GetVideoSet(), ILOG_INFO, and ILOG_VAR.

Referenced by mainRepository().

00286 {
00287     ILOG_VAR(Impala.Application.Repository.DoDumpSegmentation);
00288     CmdOptions& options = CmdOptions::GetInstance();
00289 
00290     SegmentationLocator loc = GetSegmentationLocator(options, true);
00291     VideoSet* vidSet = GetVideoSet(options, true);
00292     Segmentation* seg = SegmentationRepository().Get(loc, vidSet);
00293     ILOG_INFO("nrVideos = " << seg->GetNrVideos());
00294     ILOG_INFO("nrShots = " << seg->GetNrShots());
00295     ILOG_INFO("nrFrames = " << seg->GetTotalNrFrames());
00296     if (options.GetInt("end") == 0)
00297         return;
00298     int minNr = 10000000;
00299     int maxNr = 0;
00300     for (int i=0 ; i<seg->GetNrVideos() ; i++)
00301     {
00302         int nrFrames = seg->GetNrFramesVideo(i);
00303         std::cout << "  vid " << i << " has " << seg->GetNrShotsVideo(i)
00304                   << " shots and " << nrFrames << " frames" << std::endl;
00305         if (nrFrames < minNr)
00306             minNr = nrFrames;
00307         if (nrFrames > maxNr)
00308             maxNr = nrFrames;
00309     }
00310     std::cout << "  min nr frames = " << minNr << ", max nr = " << maxNr
00311               << std::endl;
00312     seg->Dump(options.GetInt("start"), options.GetInt("end"));
00313     delete seg;
00314     delete vidSet;
00315 }

Here is the call graph for this function:


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