Definition at line 643 of file AnnotationTable.h. References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::QuidObject(), Impala::QuidObjectEqual(), and Impala::Core::Table::Table::Size(). Referenced by MakeEpisodeFolds(). 00647 { 00648 Quid lastQuid=0; 00649 // collect all the videoIDs with a positive annotated framequide 00650 for(int i=0 ; i<positive->Size() ; i++) 00651 { 00652 Quid q = positive->Get1(i); 00653 /* QuidObjectEqual is false initially because 0 is not a valid quid. 00654 The object of a framequid is a video. */ 00655 if(!QuidObjectEqual(lastQuid,q)) 00656 { 00657 lastQuid = q; 00658 int videoID = QuidObject(q); 00659 if(find(positiveVideos.begin(), positiveVideos.end(), videoID) 00660 == positiveVideos.end()) 00661 { 00662 positiveVideos.push_back(videoID); 00663 } 00664 } 00665 } 00666 00667 lastQuid=0; 00668 // collect all the videoIDs with no positive annotated frame, which can 00669 // of course not be in positiveVideos 00670 for(int i=0 ; i<negative->Size() ; i++) 00671 { 00672 Quid q = negative->Get1(i); 00673 if(!QuidObjectEqual(lastQuid,q)) 00674 { 00675 lastQuid = q; 00676 int videoID = QuidObject(q); 00677 if(find(positiveVideos.begin(), positiveVideos.end(), videoID) 00678 == positiveVideos.end()) 00679 { 00680 if(find(negativeVideos.begin(), negativeVideos.end(), 00681 videoID) == negativeVideos.end()) 00682 { 00683 negativeVideos.push_back(videoID); 00684 } 00685 } 00686 } 00687 } 00688 }
Here is the call graph for this function:
|