Definition at line 212 of file TestVideo.h. References ILOG_DEBUG, ILOG_INFO, ILOG_NDC_POP, ILOG_NDC_PUSH, Impala::Core::Stream::RgbDataSrc::LastFrame(), Impala::MakeString(), and testFrameAccuracyBase(). Referenced by testFrameAccuracy(). 00213 { 00214 const int level = 4; 00215 ILOG_NDC_PUSH("Level-" << MakeString(level)); 00216 ILOG_INFO("Test level " << MakeString(level) << " started"); 00217 00218 //SK: video v Jun 00219 testFrameAccuracyBase(src, 529, level); 00220 testFrameAccuracyBase(src, 530, level); 00221 testFrameAccuracyBase(src, 531, level); 00222 00223 // SK: target selection algorithm by Taylan 00224 int targets[100]; 00225 srand ( time(NULL) ); 00226 targets[0] = 1; 00227 targets[1] = 11; 00228 targets[2] = 32; 00229 const int lastFrameNr = src->LastFrame(); 00230 for (int i = 3; i < 98; i++) 00231 { 00232 targets[i] = (lastFrameNr - 5) * ( (1.0 * rand()) / RAND_MAX); 00233 } 00234 targets[98] = lastFrameNr - 5; 00235 targets[99] = 0; 00236 00237 for (int i = 0; i < 100; i++) 00238 { 00239 ILOG_DEBUG("Going to " << targets[i]); 00240 if (!testFrameAccuracyBase(src, targets[i], level)) 00241 { 00242 ILOG_NDC_POP; 00243 return false; 00244 } 00245 } 00246 ILOG_NDC_POP; 00247 return true; 00248 }
Here is the call graph for this function:
|