Definition at line 317 of file SimilarityTimeLineVideo.h. References Impala::Visualization::TimeLineViewStrip::FrameError(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::SimilarityTableSet::GetIndex(), OglGui::CheckBoxValueBars::GetItem(), Impala::Core::Table::SimilarityTableSet::GetSimTable(), mAverages, mChBoxValBars, mFrameNrTxt, mMaxima, mMeans, mOptions, mSimSet, mSimTimeLine, mStatistics, OglGui::CheckBoxValueBar::Name(), OglGui::CheckBoxValueBars::NrOfItems(), Impala::Visualization::SimilarityTimeLine::PassTest(), OglGui::StaticText::SetText(), and OglGui::OglWindow::W(). Referenced by CheckBoxEvent(), and OnNewFrame(). 00318 { 00319 int frameErr = mSimTimeLine->FrameError(); 00320 char buf[40]; 00321 sprintf(buf, "fr: %d", frameNr+frameErr); 00322 mFrameNrTxt->SetText(buf); 00323 00324 if (!mSimSet || !mOptions || !mChBoxValBars) 00325 return; 00326 00327 for (int i=0; i<mChBoxValBars->NrOfItems(); i++) 00328 { 00329 CheckBoxValueBar* chBoxValB = mChBoxValBars->GetItem(i); 00330 std::string name = chBoxValB->Name(); 00331 00332 char buf[20]; 00333 sprintf(buf,""); 00334 int barW = 4; 00335 int idx = mSimSet->GetIndex(name); 00336 if (idx!=-1) 00337 { 00338 SimTableType* simTable = mSimSet->GetSimTable(idx); 00339 double sim = simTable->Get1(frameNr+frameErr); 00340 sprintf(buf, "%5.5f", sim); 00341 barW = 4+sim*(mChBoxValBars->W()-chBoxValB->ValueBar()->X()-6); 00342 00343 ULONG col = 0; 00344 float maxim = mMaxima[idx]; 00345 if (maxim>=0.2 && frameNr<(*mAverages[idx]).size()-1) 00346 { 00347 double avgSim = (*mAverages[idx])[frameNr+frameErr]; 00348 if (mSimTimeLine->PassTest(avgSim,maxim,mMeans[idx])) 00349 { 00350 UCHAR a = avgSim/maxim * 255; 00351 col = ARGB2COLOR(a,255,255,255); 00352 } 00353 } 00354 chBoxValB->ValueText()->SetBackground(col); 00355 } 00356 chBoxValB->ValueStr(buf); 00357 chBoxValB->ValueBar()->SetDimensions(RETAIN,RETAIN,barW,RETAIN); 00358 00359 sprintf(buf,""); 00360 if (idx!=-1) 00361 sprintf(buf, "%2.2f %2.2f", mMaxima[idx], mMeans[idx]); 00362 mStatistics[i]->SetText(buf); 00363 } 00364 }
Here is the call graph for this function:
|