Definition at line 343 of file AllFramesTLineVideo.h. References Impala::Visualization::SimilarityTimeLineVideo::GetAverages(), Impala::Core::Database::DataDocument::GetDataSet(), Impala::Core::Database::RawDataSet::GetFile(), Impala::Core::Table::SimilarityTableSet::GetNames(), mAnnoTables, Impala::Visualization::SimilarityTimeLineVideo::Maxima(), mCurFile, Impala::Visualization::SimilarityTimeLineVideo::Means(), mSegDoc, mSimSet, mSimTLV, Impala::QuidId(), Impala::QuidObject(), and Impala::Visualization::SimilarityTimeLineVideo::TimeLine(). Referenced by ButtonSelectionEvent(). 00344 { 00345 RawDataSet* dataSet = mSegDoc->GetDataSet(); 00346 std::string dir = dataSet->GetFile(mCurFile); 00347 00348 printf("\n\nValidation %s\n--------------------------------------\n", 00349 dir.c_str()); 00350 SimilarityTimeLine* timeLine = mSimTLV->TimeLine(); 00351 for (int a=0; a<mAnnoTables.size(); a++) 00352 { 00353 AnnotationTable* anno = mAnnoTables[a]; 00354 FloatVector* avgVector = (*mSimTLV->GetAverages())[a]; 00355 00356 int nPosCorrect=0, nPosInCorrect = 0; 00357 int nFalseCorrect=0, nFalseInCorrect= 0; 00358 int n = 0; 00359 float maxim = (*mSimTLV->Maxima())[a]; 00360 float mean = (*mSimTLV->Means())[a]; 00361 00362 int sz = anno->Size(); 00363 for (int i=0; i<sz; i++) 00364 { 00365 Quid quid = anno->Get1(i); 00366 float qual = anno->Get2(i); 00367 int vidId = QuidObject(quid); 00368 int frameId = QuidId(quid); 00369 if (vidId==mCurFile) 00370 { 00371 float sim = (*avgVector)[frameId]; 00372 bool isConcept = timeLine->PassTest(sim,maxim,mean); 00373 if (qual > 0) 00374 { 00375 if (isConcept) 00376 nPosCorrect++; 00377 else 00378 nPosInCorrect++; 00379 } 00380 if (qual < 0) 00381 { 00382 if (isConcept) 00383 nFalseInCorrect++; 00384 else 00385 nFalseCorrect++; 00386 } 00387 n++; 00388 } 00389 } 00390 printf("%18s: %3d TruePos, %3d FalseNeg, TrueNeg %3d FalsePos %3d\n", 00391 mSimSet->GetNames()[a].c_str(), nPosCorrect, nPosInCorrect, nFalseCorrect, nFalseInCorrect); 00392 } 00393 }
Here is the call graph for this function:
|