Definition at line 223 of file Segmentation.h. References GetEnd(), GetName(), GetNrShots(), GetStart(), GetVideoId(), ILOG_DEBUG, and ILOG_ERROR. Referenced by Impala::Samples::MonetTest::DoCheckSegmentation(). 00224 { 00225 if (GetNrShots() != arg->GetNrShots()) 00226 { 00227 ILOG_ERROR("Diff: nrShots differs: " << GetNrShots() << " vs " << 00228 arg->GetNrShots()); 00229 return 1; 00230 } 00231 int nDiff = 0; 00232 for (int i=0 ; i<GetNrShots() ; i++) 00233 { 00234 if (GetVideoId(i) != arg->GetVideoId(i)) 00235 { 00236 ILOG_DEBUG("Id " << i << " differs " << GetVideoId(i) << 00237 " vs " << arg->GetVideoId(i)); 00238 nDiff++; 00239 } 00240 else if (GetStart(i) != arg->GetStart(i)) 00241 { 00242 ILOG_DEBUG("Start " << i << " differs " << GetStart(i) << 00243 " vs " << arg->GetStart(i)); 00244 nDiff++; 00245 } 00246 else if (GetEnd(i) != arg->GetEnd(i)) 00247 { 00248 ILOG_DEBUG("End " << i << " differs " << GetEnd(i) << 00249 " vs " << arg->GetEnd(i)); 00250 nDiff++; 00251 } 00252 else if (GetName(i) != arg->GetName(i)) 00253 { 00254 ILOG_DEBUG("Name " << i << " differs " << GetName(i) << 00255 " vs " << arg->GetName(i)); 00256 nDiff++; 00257 } 00258 } 00259 if (nDiff > 0) 00260 ILOG_ERROR("Found " << nDiff << " differences"); 00261 return nDiff; 00262 }
Here is the call graph for this function:
|