@@ -2385,11 +2385,11 @@ TEST(Imgproc_ColorLab_Full, bitExactness)
2385
2385
cvtColor (probe, result, codes[c]);
2386
2386
2387
2387
uint32_t h = adler32 (result);
2388
+ uint32_t goodHash = hashes[c*nIterations + iter];
2388
2389
2389
- if (h != hashes[c*nIterations + iter] )
2390
+ if (h != goodHash )
2390
2391
{
2391
2392
initLabTabs ();
2392
- cvtest::TS* ts = cvtest::TS::ptr ();
2393
2393
2394
2394
vector<uchar> goldBuf (probe.cols *4 );
2395
2395
uchar* goldRow = &goldBuf[0 ];
@@ -2407,15 +2407,18 @@ TEST(Imgproc_ColorLab_Full, bitExactness)
2407
2407
if (gx[0 ] != rx[0 ] || gx[1 ] != rx[1 ] || gx[2 ] != rx[2 ])
2408
2408
{
2409
2409
next = false ;
2410
- ts->printf (cvtest::TS::SUMMARY, " Error in: (%d, %d)\n " , x, y);
2411
- ts->printf (cvtest::TS::SUMMARY, " Conversion code: %s\n " , names[c].c_str ());
2412
- ts->printf (cvtest::TS::SUMMARY, " Reference value: %d %d %d\n " , gx[0 ], gx[1 ], gx[2 ]);
2413
- ts->printf (cvtest::TS::SUMMARY, " Actual value: %d %d %d\n " , rx[0 ], rx[1 ], rx[2 ]);
2414
- ts->printf (cvtest::TS::SUMMARY, " Src value: %d %d %d\n " , px[0 ], px[1 ], px[2 ]);
2415
- ts->printf (cvtest::TS::SUMMARY, " Size: (%d, %d)\n " , probe.rows , probe.cols );
2416
-
2417
- ts->set_failed_test_info (cvtest::TS::FAIL_BAD_ACCURACY);
2418
- ts->set_gtest_status ();
2410
+
2411
+ FAIL () << " Bad accuracy" << endl;
2412
+
2413
+ FAIL () << " Conversion code: " << names[c] << endl;
2414
+ FAIL () << " Iteration: " << iter << endl;
2415
+ FAIL () << " Hash vs Correct hash: " << h << " , " << goodHash << endl;
2416
+ FAIL () << " Error in: (" << x << " , " << y << " )" << endl;
2417
+ FAIL () << " Reference value: " << gx[0 ] << " " << gx[1 ] << " " << gx[2 ] << endl;
2418
+ FAIL () << " Actual value: " << rx[0 ] << " " << rx[1 ] << " " << rx[2 ] << endl;
2419
+ FAIL () << " Src value: " << px[0 ] << " " << px[1 ] << " " << px[2 ] << endl;
2420
+ FAIL () << " Size: (" << probe.rows << " , " << probe.cols << " )" << endl;
2421
+
2419
2422
break ;
2420
2423
}
2421
2424
}
0 commit comments