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

void Impala::Visualization::GUI::ShotResultPreviewBar::Init ( KeyframeResultList  results,
Segmentation shots,
Keyframes keyframes,
CoreImageSet imSet,
int  thumbW,
int  thumbH,
double  viewscale 
) [inline, private]

Definition at line 128 of file ShotResultPreviewBar.h.

References Impala::Visualization::ImagesWindow::AddImage(), Impala::Visualization::GUI::PreviewBar::debug, GeneralInit(), Impala::Core::ImageSet::ImageSet::GetImage(), mKeyResults, mNrImOnRow, and Impala::Visualization::GUI::PreviewBar::mPreviewImages.

00131     {
00132         GeneralInit(11, results.size(), 120, shots, keyframes,
00133                     thumbW, thumbH, viewscale);
00134 
00135         mKeyResults = results;
00136 
00137         if (!mPreviewImages)
00138             return;
00139 
00140         int i=0;
00141         KeyframeResultList::iterator shot;
00142         for (shot = results.begin(); shot != results.end(); shot++)
00143         {
00144             if (debug)
00145                 std::cout << shot->keyframeid << " (rank=" << shot->rank
00146                           << " score=" << shot->score << "): ";
00147 
00148             int frameID = shot->keyframeid;
00149             if (frameID >= 0)
00150             {
00151                 std::ostringstream m;
00152                 m << shot->rank << " " << shot->score;
00153                 mPreviewImages->AddImage(imSet->GetImage(frameID), "Direct",
00154                                          m.str(), true);
00155                 if (++i >= mNrImOnRow)
00156                     break;
00157             }
00158         }
00159     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:52:28 2010 for ImpalaSrc by  doxygen 1.5.1