Definition at line 610 of file mainRepository.cpp. References Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), GetSegmentationLocator(), GetVideoSet(), ILOG_INFO, and ILOG_VAR. Referenced by mainRepository(). 00611 { 00612 ILOG_VAR(Impala.Application.Repository.DoDumpSegmentation); 00613 CmdOptions& options = CmdOptions::GetInstance(); 00614 00615 SegmentationLocator loc = GetSegmentationLocator(options, true); 00616 VideoSet* vidSet = GetVideoSet(options, true); 00617 Segmentation* seg = SegmentationRepository().Get(loc, vidSet); 00618 ILOG_INFO("nrVideos = " << seg->GetNrVideos()); 00619 ILOG_INFO("nrShots = " << seg->GetNrShots()); 00620 ILOG_INFO("nrFrames = " << seg->GetTotalNrFrames()); 00621 if (options.GetInt("end") == 0) 00622 return; 00623 int minNr = 10000000; 00624 int maxNr = 0; 00625 for (int i=0 ; i<seg->GetNrVideos() ; i++) 00626 { 00627 int nrFrames = seg->GetNrFramesVideo(i); 00628 std::cout << " vid " << i << " has " << seg->GetNrShotsVideo(i) 00629 << " shots and " << nrFrames << " frames" << std::endl; 00630 if (nrFrames < minNr) 00631 minNr = nrFrames; 00632 if (nrFrames > maxNr) 00633 maxNr = nrFrames; 00634 } 00635 std::cout << " min nr frames = " << minNr << ", max nr = " << maxNr 00636 << std::endl; 00637 seg->Dump(options.GetInt("start"), options.GetInt("end")); 00638 delete seg; 00639 delete vidSet; 00640 }
Here is the call graph for this function: ![]()
|