Definition at line 88 of file ShotResultPreviewBar.h. References Impala::Visualization::ImagesWindow::AddImage(), Impala::Visualization::GUI::PreviewBar::debug, GeneralInit(), Impala::Core::ImageSet::ImageSet::GetImage(), mNrImOnRow, Impala::Visualization::GUI::PreviewBar::mPreviewImages, and mShotResults. 00090 { 00091 GeneralInit(10, results.size(), 170, shots, keyframes, 00092 thumbW, thumbH, viewscale); 00093 00094 mShotResults = results; 00095 00096 // images: 00097 if (!mPreviewImages) 00098 return; 00099 00100 int i=0; 00101 ShotResultList::iterator shot; 00102 for (shot = results.begin(); shot != results.end(); shot++) 00103 { 00104 if (debug) 00105 std::cout << shot->shotid << " (rank=" << shot->rank 00106 << " score=" << shot->score << "): "; 00107 00108 int shotID = shot->shotid; //shots->GetShotId(shot->shotname); 00109 if (shotID >= 0) 00110 { 00111 int frameID = keyframes->GetShotRKF(shotID); 00112 if (frameID >= 0) 00113 { 00114 if (debug) 00115 std::cout << "rkf = " << shotID << " frame = " 00116 << frameID << std::endl; 00117 std::ostringstream m; 00118 m << shot->rank << "-" << shot->score << "-" << frameID; 00119 mPreviewImages->AddImage(imSet->GetImage(frameID), "Direct", 00120 m.str(), true); 00121 if (++i >= mNrImOnRow) 00122 break; 00123 } 00124 } 00125 } 00126 }
Here is the call graph for this function:
|