Definition at line 562 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(). 00566 { 00567 Quid lastQuid=0; 00568 // collect all the videoIDs with a positive annotated framequide 00569 for(int i=0 ; i<positive->Size() ; i++) 00570 { 00571 Quid q = positive->Get1(i); 00572 /* QuidObjectEqual is false initially because 0 is not a valid quid. 00573 The object of a framequid is a video. */ 00574 if(!QuidObjectEqual(lastQuid,q)) 00575 { 00576 lastQuid = q; 00577 int videoID = QuidObject(q); 00578 if(find(positiveVideos.begin(), positiveVideos.end(), videoID) 00579 == positiveVideos.end()) 00580 { 00581 positiveVideos.push_back(videoID); 00582 } 00583 } 00584 } 00585 00586 lastQuid=0; 00587 // collect all the videoIDs with no positive annotated frame, which can 00588 // of course not be in positiveVideos 00589 for(int i=0 ; i<negative->Size() ; i++) 00590 { 00591 Quid q = negative->Get1(i); 00592 if(!QuidObjectEqual(lastQuid,q)) 00593 { 00594 lastQuid = q; 00595 int videoID = QuidObject(q); 00596 if(find(positiveVideos.begin(), positiveVideos.end(), videoID) 00597 == positiveVideos.end()) 00598 { 00599 if(find(negativeVideos.begin(), negativeVideos.end(), 00600 videoID) == negativeVideos.end()) 00601 { 00602 negativeVideos.push_back(videoID); 00603 } 00604 } 00605 } 00606 } 00607 }
Here is the call graph for this function:
|