cvtest 57 modules/calib3d/test/test_affine3.cpp ASSERT_EQ(0, cvtest::norm(cv::Mat(affine.matrix, false).colRange(0, 3).rowRange(0, 3) != expected, cv::NORM_L2)); cvtest 58 modules/calib3d/test/test_affine3.cpp ASSERT_EQ(0, cvtest::norm(cv::Mat(affine.linear()) != expected, cv::NORM_L2)); cvtest 80 modules/calib3d/test/test_affine3.cpp ASSERT_LT(cvtest::norm(diff, cv::NORM_INF), 1e-15); cvtest 106 modules/calib3d/test/test_affine3.cpp ASSERT_LT(cvtest::norm(va, vo, cv::NORM_L2), 1e-9); cvtest 56 modules/calib3d/test/test_affine3d_estimator.cpp class CV_Affine3D_EstTest : public cvtest::BaseTest cvtest 111 modules/calib3d/test/test_affine3d_estimator.cpp if (cvtest::norm(aff_est, aff, NORM_INF) > thres) cvtest 114 modules/calib3d/test/test_affine3d_estimator.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 159 modules/calib3d/test/test_affine3d_estimator.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 164 modules/calib3d/test/test_affine3d_estimator.cpp if (cvtest::norm(aff_est, aff, NORM_INF) > thres) cvtest 168 modules/calib3d/test/test_affine3d_estimator.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 177 modules/calib3d/test/test_affine3d_estimator.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 186 modules/calib3d/test/test_affine3d_estimator.cpp cvtest::DefaultRngAuto dra; cvtest 194 modules/calib3d/test/test_affine3d_estimator.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 51 modules/calib3d/test/test_cameracalibration.cpp class CV_ProjectPointsTest : public cvtest::ArrayTest cvtest 70 modules/calib3d/test/test_cameracalibration.cpp : cvtest::ArrayTest( "3d-ProjectPoints", "cvProjectPoints2", "" ) cvtest 91 modules/calib3d/test/test_cameracalibration.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 100 modules/calib3d/test/test_cameracalibration.cpp int depth = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 103 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::randInt(rng) % 3; cvtest 121 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::randInt(rng) % 2 ) cvtest 159 modules/calib3d/test/test_cameracalibration.cpp r[0] = cvtest::randReal(rng)*CV_PI*2; cvtest 160 modules/calib3d/test/test_cameracalibration.cpp r[1] = cvtest::randReal(rng)*CV_PI*2; cvtest 161 modules/calib3d/test/test_cameracalibration.cpp r[2] = cvtest::randReal(rng)*CV_PI*2; cvtest 180 modules/calib3d/test/test_cameracalibration.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 218 modules/calib3d/test/test_cameracalibration.cpp theta0 = cvtest::norm( cvarrtomat(vec2), 0, CV_L2 ); cvtest 228 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::norm(cvarrtomat(&test_mat[OUTPUT][3]), 0, CV_C) < 1000 ) cvtest 250 modules/calib3d/test/test_cameracalibration.cpp class CV_CameraCalibrationTest : public cvtest::BaseTest cvtest 281 modules/calib3d/test/test_cameracalibration.cpp cvtest::BaseTest::clear(); cvtest 287 modules/calib3d/test/test_cameracalibration.cpp return cvtest::cmpEps2_64f( ts, val, ref_val, len, eps, param_name ); cvtest 292 modules/calib3d/test/test_cameracalibration.cpp int code = cvtest::TS::OK; cvtest 345 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "Could not open file with list of test files: %s\n", filename.c_str() ); cvtest 346 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 364 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, cvtest 368 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 378 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "Image size in test file is incorrect\n" ); cvtest 379 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 388 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "Pattern size in test file is incorrect\n" ); cvtest 389 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 400 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "Number of images in test file is incorrect\n"); cvtest 401 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 618 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, cvtest 620 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; goto _exit_; cvtest 625 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, cvtest 627 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; goto _exit_; cvtest 822 modules/calib3d/test/test_cameracalibration.cpp class CV_CalibrationMatrixValuesTest : public cvtest::BaseTest cvtest 835 modules/calib3d/test/test_cameracalibration.cpp int code = cvtest::TS::OK; cvtest 889 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad fovx (real=%f, good = %f\n", fovx, goodFovx ); cvtest 890 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 895 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad fovy (real=%f, good = %f\n", fovy, goodFovy ); cvtest 896 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 901 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad focalLength (real=%f, good = %f\n", focalLength, goodFocalLength ); cvtest 902 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 907 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad aspectRatio (real=%f, good = %f\n", aspectRatio, goodAspectRatio ); cvtest 908 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 913 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad principalPoint\n" ); cvtest 914 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 999 modules/calib3d/test/test_cameracalibration.cpp class CV_ProjectPointsTest : public cvtest::BaseTest cvtest 1019 modules/calib3d/test/test_cameracalibration.cpp int code = cvtest::TS::OK; cvtest 1095 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad image point\n" ); cvtest 1096 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1115 modules/calib3d/test/test_cameracalibration.cpp err = cvtest::norm( dpdrot, valDpdrot, NORM_INF ); cvtest 1118 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad dpdrot: too big difference = %g\n", err ); cvtest 1119 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1133 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::norm( dpdt, valDpdt, NORM_INF ) > 0.2 ) cvtest 1135 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad dpdtvec\n" ); cvtest 1136 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1156 modules/calib3d/test/test_cameracalibration.cpp if ( cvtest::norm( dpdf, valDpdf, NORM_L2 ) > 0.2 ) cvtest 1158 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad dpdf\n" ); cvtest 1159 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1177 modules/calib3d/test/test_cameracalibration.cpp if ( cvtest::norm( dpdc, valDpdc, NORM_L2 ) > 0.2 ) cvtest 1179 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad dpdc\n" ); cvtest 1180 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1196 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::norm( dpddist, valDpddist, NORM_L2 ) > 0.3 ) cvtest 1198 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "bad dpddist\n" ); cvtest 1199 modules/calib3d/test/test_cameracalibration.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1275 modules/calib3d/test/test_cameracalibration.cpp class CV_StereoCalibrationTest : public cvtest::BaseTest cvtest 1326 modules/calib3d/test/test_cameracalibration.cpp cvtest::BaseTest::clear(); cvtest 1347 modules/calib3d/test/test_cameracalibration.cpp ts->printf(cvtest::TS::LOG, "Test #%d. The point (%g, %g) was mapped to (%g, %g) which is out of image\n", cvtest 1360 modules/calib3d/test/test_cameracalibration.cpp ts->printf(cvtest::TS::LOG, "Test #%d. The ROI=(%d, %d, %d, %d) is outside of the imge rectangle\n", cvtest 1367 modules/calib3d/test/test_cameracalibration.cpp ts->printf(cvtest::TS::LOG, "Test #%d. The ratio of black pixels inside the valid ROI (~%g%%) is too large\n", cvtest 1394 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "The file %s can not be opened or has invalid content\n", filepath.c_str() ); cvtest 1395 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( f ? cvtest::TS::FAIL_INVALID_TEST_DATA : cvtest::TS::FAIL_MISSING_TEST_DATA ); cvtest 1416 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "The number of images is 0 or an odd number in the case #%d\n", testcase ); cvtest 1417 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 1435 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "Can not load images %s and %s, testcase %d\n", cvtest 1437 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISSING_TEST_DATA ); cvtest 1445 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "The function could not detect boards on the images %s and %s, testcase %d\n", cvtest 1447 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 1473 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "The average reprojection error is too big (=%g), testcase %d\n", err, testcase); cvtest 1474 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 1484 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::norm(R1t*R1 - eye33, NORM_L2) > 0.01 || cvtest 1485 modules/calib3d/test/test_cameracalibration.cpp cvtest::norm(R2t*R2 - eye33, NORM_L2) > 0.01 || cvtest 1488 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "The computed (by rectify) R1 and R2 are not orthogonal," cvtest 1490 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 1496 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 1502 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 1508 modules/calib3d/test/test_cameracalibration.cpp if (fabs(tx - cvtest::norm(T, NORM_L2)) > 1e-5) cvtest 1510 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 1520 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "A point after rectification is reprojected behind the camera, testcase %d\n", testcase); cvtest 1521 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 1559 modules/calib3d/test/test_cameracalibration.cpp if (cvtest::norm(triangulatedPoints, reprojectedPoints, NORM_L2) / sqrt((double)pointsCount) > requiredAccuracy) cvtest 1561 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "Points reprojected with a matrix Q and points reconstructed by triangulation are different, testcase %d\n", testcase); cvtest 1562 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 1584 modules/calib3d/test/test_cameracalibration.cpp if (cvtest::norm(error, NORM_L2) > constraintAccuracy) cvtest 1586 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "Epipolar constraint is violated after correctMatches, testcase %d\n", testcase); cvtest 1587 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 1640 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "The distance between %s coordinates is too big(=%g) (used calibrated stereo), testcase %d\n", cvtest 1642 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 1647 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "The distance between %s coordinates is too big(=%g) (used uncalibrated stereo), testcase %d\n", cvtest 1649 modules/calib3d/test/test_cameracalibration.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 1655 modules/calib3d/test/test_cameracalibration.cpp ts->printf( cvtest::TS::LOG, "Testcase %d. Max distance (calibrated) =%g\n" cvtest 85 modules/calib3d/test/test_cameracalibration_artificial.cpp class CV_CalibrateCameraArtificialTest : public cvtest::BaseTest cvtest 113 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "Bad shape of camera matrix returned \n"); cvtest 114 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 130 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 132 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Expected [Fx Fy Cx Cy] = [%.3f %.3f %.3f %.3f]\n", r, fx, fy, cx, cy); cvtest 133 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Estimated [Fx Fy Cx Cy] = [%.3f %.3f %.3f %.3f]\n", r, fx_e, fy_e, cx_e, cy_e); cvtest 160 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) DistCoeff exp=(%.2f, %.2f, %.4f, %.4f %.2f)\n", r, k1, k2, p1, p2, k3); cvtest 161 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) DistCoeff est=(%.2f, %.2f, %.4f, %.4f %.2f)\n", r, k1_e, k2_e, p1_e, p2_e, k3_e); cvtest 162 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) AbsError = [%.5f %.5f %.5f %.5f %.5f]\n", r, fabs(k1-k1_e), fabs(k2-k2_e), fabs(p1-p1_e), fabs(p2-p2_e), fabs(k3-k3_e)); cvtest 182 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) ...\n", r); cvtest 185 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Bad accuracy in returned tvecs. Index = %d\n", r, i); cvtest 186 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) norm(tvec_est - tvec) = %f, norm(tvec_exp) = %f \n", r, norm(tvec_est - tvec), norm(tvec)); cvtest 189 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 207 modules/calib3d/test/test_cameracalibration_artificial.cpp if (cvtest::norm(rmat_est, rmat, NORM_L2) > eps* (cvtest::norm(rmat, NORM_L2) + dlt)) cvtest 212 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) ...\n", r); cvtest 215 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Bad accuracy in returned rvecs (rotation matrs). Index = %d\n", r, i); cvtest 216 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) norm(rot_mat_est - rot_mat_exp) = %f, norm(rot_mat_exp) = %f \n", r, cvtest 217 modules/calib3d/test/test_cameracalibration_artificial.cpp cvtest::norm(rmat_est, rmat, NORM_L2), cvtest::norm(rmat, NORM_L2)); cvtest 221 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 340 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Too big reproject error = %f\n", r, rep_error); cvtest 341 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 355 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Too big reproject error without intrinsics = %f\n", r, rep_errorWOI); cvtest 356 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 359 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) Testing solvePnP...\n", r); cvtest 372 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 409 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "\n"); cvtest 412 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "artificial corners\n"); cvtest 416 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "findChessboard corners\n"); cvtest 420 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "cornersSubPix corners\n"); cvtest 424 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "4quad corners\n"); cvtest 51 modules/calib3d/test/test_cameracalibration_badarg.cpp class CV_CameraCalibrationBadArgTest : public cvtest::BadArgTest cvtest 318 modules/calib3d/test/test_cameracalibration_badarg.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 320 modules/calib3d/test/test_cameracalibration_badarg.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 331 modules/calib3d/test/test_cameracalibration_badarg.cpp class CV_Rodrigues2BadArgTest : public cvtest::BadArgTest cvtest 445 modules/calib3d/test/test_cameracalibration_badarg.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 447 modules/calib3d/test/test_cameracalibration_badarg.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 454 modules/calib3d/test/test_cameracalibration_badarg.cpp class CV_ProjectPoints2BadArgTest : public cvtest::BadArgTest cvtest 728 modules/calib3d/test/test_cameracalibration_badarg.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 730 modules/calib3d/test/test_cameracalibration_badarg.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 80 modules/calib3d/test/test_chesscorners.cpp class CV_ChessboardDetectorTest : public cvtest::BaseTest cvtest 141 modules/calib3d/test/test_chesscorners.cpp ts->set_failed_test_info( cvtest::TS::OK ); cvtest 149 modules/calib3d/test/test_chesscorners.cpp if (ts->get_err_code() != cvtest::TS::OK) cvtest 155 modules/calib3d/test/test_chesscorners.cpp if (ts->get_err_code() != cvtest::TS::OK) cvtest 161 modules/calib3d/test/test_chesscorners.cpp if (ts->get_err_code() != cvtest::TS::OK) cvtest 179 modules/calib3d/test/test_chesscorners.cpp ts->printf(cvtest::TS::LOG, "\nRunning batch %s\n", filename.c_str()); cvtest 203 modules/calib3d/test/test_chesscorners.cpp ts->printf( cvtest::TS::LOG, "%s can not be readed or is not valid\n", (folder + filename).c_str() ); cvtest 204 modules/calib3d/test/test_chesscorners.cpp ts->printf( cvtest::TS::LOG, "fs.isOpened=%d, board_list.empty=%d, board_list.isSeq=%d,board_list.size()%2=%d\n", cvtest 206 modules/calib3d/test/test_chesscorners.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISSING_TEST_DATA ); cvtest 225 modules/calib3d/test/test_chesscorners.cpp ts->printf( cvtest::TS::LOG, "one of chessboard images can't be read: %s\n", img_file.c_str() ); cvtest 226 modules/calib3d/test/test_chesscorners.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISSING_TEST_DATA ); cvtest 260 modules/calib3d/test/test_chesscorners.cpp ts->printf( cvtest::TS::LOG, "chessboard is detected incorrectly in %s\n", img_file.c_str() ); cvtest 261 modules/calib3d/test/test_chesscorners.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 273 modules/calib3d/test/test_chesscorners.cpp ts.printf( cvtest::TS::LOG, "bad accuracy of corner guesses\n" ); cvtest 274 modules/calib3d/test/test_chesscorners.cpp ts.set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 292 modules/calib3d/test/test_chesscorners.cpp ts->printf( cvtest::TS::LOG, "Image %s: bad accuracy of adjusted corners %f\n", img_file.c_str(), err ); cvtest 293 modules/calib3d/test/test_chesscorners.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 297 modules/calib3d/test/test_chesscorners.cpp ts->printf(cvtest::TS::LOG, "Error on %s is %f\n", img_file.c_str(), err); cvtest 314 modules/calib3d/test/test_chesscorners.cpp ts->printf(cvtest::TS::LOG, "Average error is %f (%d patterns have been found)\n", sum_error, count); cvtest 402 modules/calib3d/test/test_chesscorners.cpp ts->printf( cvtest::TS::LOG, "Chess board skipped - too small" ); cvtest 416 modules/calib3d/test/test_chesscorners.cpp ts->printf( cvtest::TS::LOG, "Chess board corners not found\n" ); cvtest 417 modules/calib3d/test/test_chesscorners.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 425 modules/calib3d/test/test_chesscorners.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of corner guesses" ); cvtest 426 modules/calib3d/test/test_chesscorners.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 51 modules/calib3d/test/test_chesscorners_badarg.cpp class CV_ChessboardDetectorBadArgTest : public cvtest::BadArgTest cvtest 147 modules/calib3d/test/test_chesscorners_badarg.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 149 modules/calib3d/test/test_chesscorners_badarg.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 46 modules/calib3d/test/test_chesscorners_timing.cpp class CV_ChessboardDetectorTimingTest : public cvtest::BaseTest cvtest 62 modules/calib3d/test/test_chesscorners_timing.cpp int code = cvtest::TS::OK; cvtest 86 modules/calib3d/test/test_chesscorners_timing.cpp ts->printf( cvtest::TS::LOG, "chessboard_timing_list.dat can not be readed or is not valid" ); cvtest 87 modules/calib3d/test/test_chesscorners_timing.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 115 modules/calib3d/test/test_chesscorners_timing.cpp ts->printf( cvtest::TS::LOG, "one of chessboard images can't be read: %s\n", filename.c_str() ); cvtest 118 modules/calib3d/test/test_chesscorners_timing.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 124 modules/calib3d/test/test_chesscorners_timing.cpp ts->printf(cvtest::TS::LOG, "%s: chessboard %d:\n", imgname, is_chessboard); cvtest 149 modules/calib3d/test/test_chesscorners_timing.cpp ts->printf( cvtest::TS::LOG, "Error: chessboard was %sdetected in the image %s\n", cvtest 151 modules/calib3d/test/test_chesscorners_timing.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 156 modules/calib3d/test/test_chesscorners_timing.cpp ts->printf( cvtest::TS::LOG, "Warning: results differ cvCheckChessboard %d, cvFindChessboardCorners %d\n", cvtest 162 modules/calib3d/test/test_chesscorners_timing.cpp ts->printf(cvtest::TS::LOG, " cvCheckChessboard time s: %f, us per pixel: %f\n", cvtest 166 modules/calib3d/test/test_chesscorners_timing.cpp ts->printf(cvtest::TS::LOG, " cvFindChessboard time s: %f, us per pixel: %f\n", cvtest 133 modules/calib3d/test/test_compose_rt.cpp class CV_composeRT_Test : public cvtest::BaseTest cvtest 142 modules/calib3d/test/test_compose_rt.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 166 modules/calib3d/test/test_compose_rt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 181 modules/calib3d/test/test_compose_rt.cpp ts->printf( cvtest::TS::LOG, "Invalid derivates by r1\n" ); cvtest 182 modules/calib3d/test/test_compose_rt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 190 modules/calib3d/test/test_compose_rt.cpp ts->printf( cvtest::TS::LOG, "Invalid derivates by r2\n" ); cvtest 191 modules/calib3d/test/test_compose_rt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 199 modules/calib3d/test/test_compose_rt.cpp ts->printf( cvtest::TS::LOG, "Invalid derivates by t1\n" ); cvtest 200 modules/calib3d/test/test_compose_rt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 208 modules/calib3d/test/test_compose_rt.cpp ts->printf( cvtest::TS::LOG, "Invalid derivates by t2\n" ); cvtest 209 modules/calib3d/test/test_compose_rt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 50 modules/calib3d/test/test_cornerssubpix.cpp class CV_ChessboardSubpixelTest : public cvtest::BaseTest cvtest 122 modules/calib3d/test/test_cornerssubpix.cpp int code = cvtest::TS::OK; cvtest 137 modules/calib3d/test/test_cornerssubpix.cpp const int pattern_width = min_pattern_size + cvtest::randInt(rng) % (max_pattern_size - min_pattern_size); cvtest 138 modules/calib3d/test/test_cornerssubpix.cpp const int pattern_height = min_pattern_size + cvtest::randInt(rng) % (max_pattern_size - min_pattern_size); cvtest 161 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "Warning: chessboard was not detected! Writing image to test.png\n"); cvtest 162 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "Size = %d, %d\n", pattern_size.width, pattern_size.height); cvtest 163 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "Intrinsic params: fx = %f, fy = %f, cx = %f, cy = %f\n", cvtest 166 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "Distortion matrix: %f, %f, %f, %f, %f\n", cvtest 180 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "findChessboardCorners returns invalid corner coordinates!\n"); cvtest 181 modules/calib3d/test/test_cornerssubpix.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 194 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "findCornerSubpix returns invalid corner coordinates!\n"); cvtest 195 modules/calib3d/test/test_cornerssubpix.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 199 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "Error after findChessboardCorners: %f, after findCornerSubPix: %f\n", cvtest 207 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "findCornerSubPix increases average error!\n"); cvtest 208 modules/calib3d/test/test_cornerssubpix.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 216 modules/calib3d/test/test_cornerssubpix.cpp ts->printf(cvtest::TS::LOG, "Average error after findCornerSubpix: %f\n", sum_dist); cvtest 228 modules/calib3d/test/test_cornerssubpix.cpp double fx = cvtest::randReal(rng)*max_focus_length; cvtest 229 modules/calib3d/test/test_cornerssubpix.cpp double fy = fx + cvtest::randReal(rng)*max_focus_diff; cvtest 233 modules/calib3d/test/test_cornerssubpix.cpp double k1 = 0.5*cvtest::randReal(rng); cvtest 234 modules/calib3d/test/test_cornerssubpix.cpp double k2 = 0.05*cvtest::randReal(rng); cvtest 235 modules/calib3d/test/test_cornerssubpix.cpp double p1 = 0.05*cvtest::randReal(rng); cvtest 236 modules/calib3d/test/test_cornerssubpix.cpp double p2 = 0.05*cvtest::randReal(rng); cvtest 45 modules/calib3d/test/test_decompose_projection.cpp class CV_DecomposeProjectionMatrixTest : public cvtest::BaseTest cvtest 62 modules/calib3d/test/test_decompose_projection.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 116 modules/calib3d/test/test_decompose_projection.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 122 modules/calib3d/test/test_decompose_projection.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 128 modules/calib3d/test/test_decompose_projection.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 58 modules/calib3d/test/test_fisheye.cpp datasets_repository_path = combine(cvtest::TS::ptr()->get_data_path(), "cv/cameracalibration/fisheye"); cvtest 351 modules/calib3d/test/test_fundam.cpp void cvtest::Rodrigues(const Mat& src, Mat& dst, Mat* jac) cvtest 518 modules/calib3d/test/test_fundam.cpp class CV_RodriguesTest : public cvtest::ArrayTest cvtest 560 modules/calib3d/test/test_fundam.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 569 modules/calib3d/test/test_fundam.cpp int depth = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 572 modules/calib3d/test/test_fundam.cpp code = cvtest::randInt(rng) % 3; cvtest 590 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 604 modules/calib3d/test/test_fundam.cpp calc_jacobians = cvtest::randInt(rng) % 3 != 0; cvtest 613 modules/calib3d/test/test_fundam.cpp test_cpp = (cvtest::randInt(rng) & 256) == 0; cvtest 631 modules/calib3d/test/test_fundam.cpp r[0] = cvtest::randReal(rng)*CV_PI*2; cvtest 632 modules/calib3d/test/test_fundam.cpp r[1] = cvtest::randReal(rng)*CV_PI*2; cvtest 633 modules/calib3d/test/test_fundam.cpp r[2] = cvtest::randReal(rng)*CV_PI*2; cvtest 646 modules/calib3d/test/test_fundam.cpp cvtest::convert( _r, arr, arr.type() ); cvtest 649 modules/calib3d/test/test_fundam.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); cvtest 655 modules/calib3d/test/test_fundam.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 727 modules/calib3d/test/test_fundam.cpp cvtest::Rodrigues( vec, m, v2m_jac ); cvtest 728 modules/calib3d/test/test_fundam.cpp cvtest::Rodrigues( m, vec2, m2v_jac ); cvtest 729 modules/calib3d/test/test_fundam.cpp cvtest::copy( vec, vec2 ); cvtest 741 modules/calib3d/test/test_fundam.cpp double nrm = cvtest::norm(test_mat[REF_OUTPUT][3], CV_C); cvtest 751 modules/calib3d/test/test_fundam.cpp cvtest::copy( test_mat[REF_OUTPUT][2], test_mat[OUTPUT][2] ); cvtest 760 modules/calib3d/test/test_fundam.cpp class CV_FundamentalMatTest : public cvtest::ArrayTest cvtest 823 modules/calib3d/test/test_fundam.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 832 modules/calib3d/test/test_fundam.cpp int pt_depth = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 833 modules/calib3d/test/test_fundam.cpp double pt_count_exp = cvtest::randReal(rng)*6 + 1; cvtest 836 modules/calib3d/test/test_fundam.cpp dims = cvtest::randInt(rng) % 2 + 2; cvtest 837 modules/calib3d/test/test_fundam.cpp method = 1 << (cvtest::randInt(rng) % 4); cvtest 844 modules/calib3d/test/test_fundam.cpp if( pt_count >= 8 && cvtest::randInt(rng) % 2 ) cvtest 850 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 855 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 858 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 887 modules/calib3d/test/test_fundam.cpp test_cpp = (cvtest::randInt(rng) & 256) == 0; cvtest 904 modules/calib3d/test/test_fundam.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); cvtest 918 modules/calib3d/test/test_fundam.cpp p[i] = cvtest::randReal(rng)*cube_size; cvtest 919 modules/calib3d/test/test_fundam.cpp p[i+1] = cvtest::randReal(rng)*cube_size; cvtest 920 modules/calib3d/test/test_fundam.cpp p[i+2] = cvtest::randReal(rng)*cube_size + cube_size; cvtest 929 modules/calib3d/test/test_fundam.cpp r[0] = cvtest::randReal(rng)*CV_PI*2; cvtest 930 modules/calib3d/test/test_fundam.cpp r[1] = cvtest::randReal(rng)*CV_PI*2; cvtest 931 modules/calib3d/test/test_fundam.cpp r[2] = cvtest::randReal(rng)*CV_PI*2; cvtest 933 modules/calib3d/test/test_fundam.cpp cvtest::Rodrigues( rot_vec, rot_mat ); cvtest 934 modules/calib3d/test/test_fundam.cpp t[3] = cvtest::randReal(rng)*cube_size; cvtest 935 modules/calib3d/test/test_fundam.cpp t[7] = cvtest::randReal(rng)*cube_size; cvtest 936 modules/calib3d/test/test_fundam.cpp t[11] = cvtest::randReal(rng)*cube_size; cvtest 942 modules/calib3d/test/test_fundam.cpp t[0] = t[4] = cvtest::randReal(rng)*(max_f - min_f) + min_f; cvtest 943 modules/calib3d/test/test_fundam.cpp t[2] = (img_size*0.5 + cvtest::randReal(rng)*4. - 2.)*t[0]; cvtest 944 modules/calib3d/test/test_fundam.cpp t[5] = (img_size*0.5 + cvtest::randReal(rng)*4. - 2.)*t[4]; cvtest 954 modules/calib3d/test/test_fundam.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 1024 modules/calib3d/test/test_fundam.cpp cvtest::convert(test_mat[TEMP][0], F, F.type()); cvtest 1056 modules/calib3d/test/test_fundam.cpp class CV_EssentialMatTest : public cvtest::ArrayTest cvtest 1122 modules/calib3d/test/test_fundam.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 1131 modules/calib3d/test/test_fundam.cpp int pt_depth = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 1132 modules/calib3d/test/test_fundam.cpp double pt_count_exp = cvtest::randReal(rng)*6 + 1; cvtest 1135 modules/calib3d/test/test_fundam.cpp dims = cvtest::randInt(rng) % 2 + 2; cvtest 1137 modules/calib3d/test/test_fundam.cpp method = CV_LMEDS << (cvtest::randInt(rng) % 2); cvtest 1141 modules/calib3d/test/test_fundam.cpp if( 0 && cvtest::randInt(rng) % 2 ) cvtest 1146 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1149 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1204 modules/calib3d/test/test_fundam.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); cvtest 1218 modules/calib3d/test/test_fundam.cpp p[i] = cvtest::randReal(rng)*cube_size; cvtest 1219 modules/calib3d/test/test_fundam.cpp p[i+1] = cvtest::randReal(rng)*cube_size; cvtest 1220 modules/calib3d/test/test_fundam.cpp p[i+2] = cvtest::randReal(rng)*cube_size + cube_size; cvtest 1229 modules/calib3d/test/test_fundam.cpp r[0] = cvtest::randReal(rng)*CV_PI*2; cvtest 1230 modules/calib3d/test/test_fundam.cpp r[1] = cvtest::randReal(rng)*CV_PI*2; cvtest 1231 modules/calib3d/test/test_fundam.cpp r[2] = cvtest::randReal(rng)*CV_PI*2; cvtest 1233 modules/calib3d/test/test_fundam.cpp cvtest::Rodrigues( rot_vec, rot_mat ); cvtest 1234 modules/calib3d/test/test_fundam.cpp t[3] = cvtest::randReal(rng)*cube_size; cvtest 1235 modules/calib3d/test/test_fundam.cpp t[7] = cvtest::randReal(rng)*cube_size; cvtest 1236 modules/calib3d/test/test_fundam.cpp t[11] = cvtest::randReal(rng)*cube_size; cvtest 1241 modules/calib3d/test/test_fundam.cpp t[0] = t[4] = cvtest::randReal(rng)*(max_f - min_f) + min_f; cvtest 1242 modules/calib3d/test/test_fundam.cpp t[2] = (img_size*0.5 + cvtest::randReal(rng)*4. - 2.)*t[0]; cvtest 1243 modules/calib3d/test/test_fundam.cpp t[5] = (img_size*0.5 + cvtest::randReal(rng)*4. - 2.)*t[4]; cvtest 1253 modules/calib3d/test/test_fundam.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 1289 modules/calib3d/test/test_fundam.cpp int row = (cvtest::randInt(rng) % count) * 3; cvtest 1361 modules/calib3d/test/test_fundam.cpp cvtest::convert(test_mat[TEMP][0], E, E.type()); cvtest 1398 modules/calib3d/test/test_fundam.cpp double terr1 = cvtest::norm(Rt0.col(3) / norm(Rt0.col(3)) + test_mat[TEMP][3], NORM_L2); cvtest 1399 modules/calib3d/test/test_fundam.cpp double terr2 = cvtest::norm(Rt0.col(3) / norm(Rt0.col(3)) - test_mat[TEMP][3], NORM_L2); cvtest 1419 modules/calib3d/test/test_fundam.cpp class CV_ConvertHomogeneousTest : public cvtest::ArrayTest cvtest 1450 modules/calib3d/test/test_fundam.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 1459 modules/calib3d/test/test_fundam.cpp int pt_depth1 = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 1460 modules/calib3d/test/test_fundam.cpp int pt_depth2 = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 1461 modules/calib3d/test/test_fundam.cpp double pt_count_exp = cvtest::randReal(rng)*6 + 1; cvtest 1467 modules/calib3d/test/test_fundam.cpp dims1 = 2 + (cvtest::randInt(rng) % 3); cvtest 1468 modules/calib3d/test/test_fundam.cpp dims2 = 2 + (cvtest::randInt(rng) % 3); cvtest 1475 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1480 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1485 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1488 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1497 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1502 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1505 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1532 modules/calib3d/test/test_fundam.cpp cvtest::randUni( rng, temp, low, high ); cvtest 1552 modules/calib3d/test/test_fundam.cpp class CV_ComputeEpilinesTest : public cvtest::ArrayTest cvtest 1585 modules/calib3d/test/test_fundam.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 1594 modules/calib3d/test/test_fundam.cpp int fm_depth = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 1595 modules/calib3d/test/test_fundam.cpp int pt_depth = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 1596 modules/calib3d/test/test_fundam.cpp int ln_depth = cvtest::randInt(rng) % 2 == 0 ? CV_32F : CV_64F; cvtest 1597 modules/calib3d/test/test_fundam.cpp double pt_count_exp = cvtest::randReal(rng)*6; cvtest 1599 modules/calib3d/test/test_fundam.cpp which_image = 1 + (cvtest::randInt(rng) % 2); cvtest 1605 modules/calib3d/test/test_fundam.cpp dims = 2 + (cvtest::randInt(rng) % 2); cvtest 1609 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 && !few_points ) cvtest 1614 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 || few_points ) cvtest 1617 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1629 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 && !few_points ) cvtest 1634 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 || few_points ) cvtest 1637 modules/calib3d/test/test_fundam.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1662 modules/calib3d/test/test_fundam.cpp cvtest::randUni( rng, temp, cvScalar(0,0,1), cvScalarAll(10) ); cvtest 1666 modules/calib3d/test/test_fundam.cpp cvtest::randUni( rng, arr, cvScalarAll(0), cvScalarAll(10) ); cvtest 1668 modules/calib3d/test/test_fundam.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); cvtest 73 modules/calib3d/test/test_homography.cpp class CV_HomographyTest: public cvtest::ArrayTest cvtest 122 modules/calib3d/test/test_homography.cpp diff = cvtest::norm(original, found, norm_type); cvtest 258 modules/calib3d/test/test_homography.cpp src_data[2*i] = (float)cvtest::randReal(rng)*image_size; cvtest 259 modules/calib3d/test/test_homography.cpp src_data[2*i+1] = (float)cvtest::randReal(rng)*image_size; cvtest 279 modules/calib3d/test/test_homography.cpp double fi = cvtest::randReal(rng)*2*CV_PI; cvtest 281 modules/calib3d/test/test_homography.cpp double t_x = cvtest::randReal(rng)*sqrt(image_size*1.0), cvtest 282 modules/calib3d/test/test_homography.cpp t_y = cvtest::randReal(rng)*sqrt(image_size*1.0); cvtest 639 modules/calib3d/test/test_homography.cpp Mat img_1 = imread(cvtest::TS::ptr()->get_data_path() + "cv/optflow/image1.png", 0); cvtest 640 modules/calib3d/test/test_homography.cpp Mat img_2 = imread(cvtest::TS::ptr()->get_data_path() + "cv/optflow/image2.png", 0); cvtest 53 modules/calib3d/test/test_homography_decomp.cpp class CV_HomographyDecompTest: public cvtest::BaseTest { cvtest 83 modules/calib3d/test/test_modelest.cpp class CV_ModelEstimator2_Test : public cvtest::ArrayTest cvtest 117 modules/calib3d/test/test_modelest.cpp checkPartialSubsets = (cvtest::randInt(rng) % 2 == 0); cvtest 119 modules/calib3d/test/test_modelest.cpp int pointsCount = cvtest::randInt(rng) % maxPointsCount; cvtest 120 modules/calib3d/test/test_modelest.cpp usedPointsCount = pointsCount == 0 ? 0 : cvtest::randInt(rng) % pointsCount; cvtest 133 modules/calib3d/test/test_modelest.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); cvtest 191 modules/calib3d/test/test_modelest.cpp startPointIndex = cvtest::randInt(rng) % usedPointsCount; cvtest 192 modules/calib3d/test/test_modelest.cpp endPointIndex = cvtest::randInt(rng) % usedPointsCount; cvtest 193 modules/calib3d/test/test_modelest.cpp modifiedPointIndex = checkPartialSubsets ? usedPointsCount - 1 : cvtest::randInt(rng) % usedPointsCount; cvtest 197 modules/calib3d/test/test_modelest.cpp double startWeight = cvtest::randReal(rng); cvtest 222 modules/calib3d/test/test_modelest.cpp int modelPoints = cvtest::randInt(rng); cvtest 224 modules/calib3d/test/test_modelest.cpp int maxBasicSolutions = cvtest::randInt(rng); cvtest 48 modules/calib3d/test/test_posit.cpp class CV_POSITTest : public cvtest::BaseTest cvtest 64 modules/calib3d/test/test_posit.cpp int code = cvtest::TS::OK; cvtest 131 modules/calib3d/test/test_posit.cpp angleX = (float)(cvtest::randReal(rng)*2*CV_PI); cvtest 132 modules/calib3d/test/test_posit.cpp angleY = (float)(cvtest::randReal(rng)*2*CV_PI); cvtest 133 modules/calib3d/test/test_posit.cpp angleZ = (float)(cvtest::randReal(rng)*2*CV_PI); cvtest 157 modules/calib3d/test/test_posit.cpp true_translation->data.fl[2] = (float)(cvtest::randReal(rng)*(2*flFocalLength-40) + 60); cvtest 158 modules/calib3d/test/test_posit.cpp true_translation->data.fl[0] = (float)((cvtest::randReal(rng)*2-1)*true_translation->data.fl[2]); cvtest 159 modules/calib3d/test/test_posit.cpp true_translation->data.fl[1] = (float)((cvtest::randReal(rng)*2-1)*true_translation->data.fl[2]); cvtest 195 modules/calib3d/test/test_posit.cpp code = cvtest::cmpEps2( ts, _rotation, _true_rotation, flEpsilon, false, "rotation matrix" ); cvtest 199 modules/calib3d/test/test_posit.cpp code = cvtest::cmpEps2( ts, _translation, _true_translation, flEpsilon, false, "translation vector" ); cvtest 54 modules/calib3d/test/test_reproject_image_to_3d.cpp class CV_ReprojectImageTo3DTest : public cvtest::BaseTest cvtest 64 modules/calib3d/test/test_reproject_image_to_3d.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 160 modules/calib3d/test/test_reproject_image_to_3d.cpp ts->printf(cvtest::TS::LOG, "Missing values are handled improperly\n"); cvtest 161 modules/calib3d/test/test_reproject_image_to_3d.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 169 modules/calib3d/test/test_reproject_image_to_3d.cpp ts->printf(cvtest::TS::LOG, "case %d. too big error at (%d, %d): %g vs expected %g: res = (%g, %g, %g, w=%g) vs pixel_out = (%g, %g, %g)\n", cvtest 172 modules/calib3d/test/test_reproject_image_to_3d.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 52 modules/calib3d/test/test_solvepnp_ransac.cpp class CV_solvePnPRansac_Test : public cvtest::BaseTest cvtest 157 modules/calib3d/test/test_solvepnp_ransac.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 182 modules/calib3d/test/test_solvepnp_ransac.cpp ts->printf( cvtest::TS::LOG, "Invalid accuracy for method %d, failed %d tests from %d, maximum error equals %f, distortion mode equals %d\n", cvtest 184 modules/calib3d/test/test_solvepnp_ransac.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 310 modules/calib3d/test/test_solvepnp_ransac.cpp double rnorm = cvtest::norm(rvec1, rvec2, NORM_INF); cvtest 311 modules/calib3d/test/test_solvepnp_ransac.cpp double tnorm = cvtest::norm(tvec1, tvec2, NORM_INF); cvtest 282 modules/calib3d/test/test_stereomatching.cpp return 1.f/sqrt((float)pointsCount) * (float)cvtest::norm(computedDisp, groundTruthDisp, NORM_L2, mask); cvtest 362 modules/calib3d/test/test_stereomatching.cpp class CV_StereoMatchingTest : public cvtest::BaseTest cvtest 406 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "dataPath is empty" ); cvtest 407 modules/calib3d/test/test_stereomatching.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ARG_CHECK ); cvtest 413 modules/calib3d/test/test_stereomatching.cpp if( code != cvtest::TS::OK ) cvtest 420 modules/calib3d/test/test_stereomatching.cpp if( code != cvtest::TS::OK ) cvtest 436 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "file %s can not be read or written\n", fullResultFilename.c_str() ); cvtest 437 modules/calib3d/test/test_stereomatching.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ARG_CHECK ); cvtest 458 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "images or left ground-truth disparities of dataset %s can not be read", datasetName.c_str() ); cvtest 459 modules/calib3d/test/test_stereomatching.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 489 modules/calib3d/test/test_stereomatching.cpp code = tempCode==cvtest::TS::OK ? code : tempCode; cvtest 547 modules/calib3d/test/test_stereomatching.cpp int code = cvtest::TS::OK; cvtest 582 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "\nquality of case named %s\n", caseNames[caseIdx].c_str() ); cvtest 583 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "%s\n", RMS_STR.c_str() ); cvtest 585 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "%s\n", BAD_PXLS_FRACTION_STR.c_str() ); cvtest 594 modules/calib3d/test/test_stereomatching.cpp code = tempCode==cvtest::TS::OK ? code : tempCode; cvtest 596 modules/calib3d/test/test_stereomatching.cpp code = tempCode==cvtest::TS::OK ? code : tempCode; cvtest 605 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "datasetsParams can not be read " ); cvtest 606 modules/calib3d/test/test_stereomatching.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 619 modules/calib3d/test/test_stereomatching.cpp return cvtest::TS::OK; cvtest 626 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "runParams can not be read " ); cvtest 627 modules/calib3d/test/test_stereomatching.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 631 modules/calib3d/test/test_stereomatching.cpp return cvtest::TS::OK; cvtest 643 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "%s = %f\n", string(ERROR_PREFIXES[i]+errName).c_str(), *it ); cvtest 667 modules/calib3d/test/test_stereomatching.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of %s (valid=%f; calc=%f)\n", string(ERROR_PREFIXES[i]+errName).c_str(), *validIt, *calcIt ); cvtest 670 modules/calib3d/test/test_stereomatching.cpp return ok ? cvtest::TS::OK : cvtest::TS::FAIL_BAD_ACCURACY; cvtest 49 modules/calib3d/test/test_undistort.cpp class CV_DefaultNewCameraMatrixTest : public cvtest::ArrayTest cvtest 85 modules/calib3d/test/test_undistort.cpp cvtest::ArrayTest::get_test_array_types_and_sizes(test_case_idx,sizes,types); cvtest 87 modules/calib3d/test/test_undistort.cpp matrix_type = types[INPUT][0] = types[OUTPUT][0]= types[REF_OUTPUT][0] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 93 modules/calib3d/test/test_undistort.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 100 modules/calib3d/test/test_undistort.cpp img_size.width = cvtest::randInt(rng) % MAX_X + 1; cvtest 101 modules/calib3d/test/test_undistort.cpp img_size.height = cvtest::randInt(rng) % MAX_Y + 1; cvtest 103 modules/calib3d/test/test_undistort.cpp center_principal_point = ((cvtest::randInt(rng) % 2)!=0); cvtest 107 modules/calib3d/test/test_undistort.cpp double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; cvtest 110 modules/calib3d/test/test_undistort.cpp a[2] = (img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 111 modules/calib3d/test/test_undistort.cpp a[5] = (img_size.height - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 112 modules/calib3d/test/test_undistort.cpp a[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); cvtest 116 modules/calib3d/test/test_undistort.cpp cvtest::convert(_a, _a0, _a0.type()); cvtest 134 modules/calib3d/test/test_undistort.cpp cvtest::convert( output, test_output, test_output.type() ); cvtest 137 modules/calib3d/test/test_undistort.cpp cvtest::copy(src, dst); cvtest 155 modules/calib3d/test/test_undistort.cpp cvtest::convert( _a, dst, dst.type() ); cvtest 161 modules/calib3d/test/test_undistort.cpp class CV_UndistortPointsTest : public cvtest::ArrayTest cvtest 213 modules/calib3d/test/test_undistort.cpp cvtest::ArrayTest::get_test_array_types_and_sizes(test_case_idx,sizes,types); cvtest 215 modules/calib3d/test/test_undistort.cpp useCPlus = ((cvtest::randInt(rng) % 2)!=0); cvtest 223 modules/calib3d/test/test_undistort.cpp types[INPUT][0] = types[OUTPUT][0] = types[REF_OUTPUT][0] = types[TEMP][0]= cvtest::randInt(rng)%2 ? CV_64FC2 : CV_32FC2; cvtest 225 modules/calib3d/test/test_undistort.cpp types[INPUT][1] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 226 modules/calib3d/test/test_undistort.cpp types[INPUT][2] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 227 modules/calib3d/test/test_undistort.cpp types[INPUT][3] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 228 modules/calib3d/test/test_undistort.cpp types[INPUT][4] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 230 modules/calib3d/test/test_undistort.cpp sizes[INPUT][0] = sizes[OUTPUT][0] = sizes[REF_OUTPUT][0] = sizes[TEMP][0]= cvtest::randInt(rng)%2 ? cvSize(1,N_POINTS) : cvSize(N_POINTS,1); cvtest 232 modules/calib3d/test/test_undistort.cpp sizes[INPUT][4] = cvtest::randInt(rng)%2 ? cvSize(3,3) : cvSize(4,3); cvtest 234 modules/calib3d/test/test_undistort.cpp if (cvtest::randInt(rng)%2) cvtest 236 modules/calib3d/test/test_undistort.cpp if (cvtest::randInt(rng)%2) cvtest 247 modules/calib3d/test/test_undistort.cpp if (cvtest::randInt(rng)%2) cvtest 261 modules/calib3d/test/test_undistort.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 266 modules/calib3d/test/test_undistort.cpp useDstMat = (cvtest::randInt(rng) % 2) == 0; cvtest 268 modules/calib3d/test/test_undistort.cpp img_size.width = cvtest::randInt(rng) % MAX_X + 1; cvtest 269 modules/calib3d/test/test_undistort.cpp img_size.height = cvtest::randInt(rng) % MAX_Y + 1; cvtest 286 modules/calib3d/test/test_undistort.cpp points[i].x = cvtest::randReal(rng)*img_size.width; cvtest 287 modules/calib3d/test/test_undistort.cpp points[i].y = cvtest::randReal(rng)*img_size.height; cvtest 292 modules/calib3d/test/test_undistort.cpp double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; cvtest 293 modules/calib3d/test/test_undistort.cpp cam[2] = (img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 294 modules/calib3d/test/test_undistort.cpp cam[5] = (img_size.height - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 295 modules/calib3d/test/test_undistort.cpp cam[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); cvtest 299 modules/calib3d/test/test_undistort.cpp dist[0] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 300 modules/calib3d/test/test_undistort.cpp dist[1] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 303 modules/calib3d/test/test_undistort.cpp if( cvtest::randInt(rng)%4 != 0 ) cvtest 305 modules/calib3d/test/test_undistort.cpp dist[2] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 306 modules/calib3d/test/test_undistort.cpp dist[3] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 308 modules/calib3d/test/test_undistort.cpp dist[4] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 321 modules/calib3d/test/test_undistort.cpp if (cvtest::randInt(rng)%2 == 0) // use identity new camera matrix cvtest 328 modules/calib3d/test/test_undistort.cpp proj[0] = cam[0] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[0]; //10% cvtest 329 modules/calib3d/test/test_undistort.cpp proj[4] = cam[4] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[4]; //10% cvtest 330 modules/calib3d/test/test_undistort.cpp proj[2] = cam[2] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.width; //15% cvtest 331 modules/calib3d/test/test_undistort.cpp proj[5] = cam[5] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.height; //15% cvtest 337 modules/calib3d/test/test_undistort.cpp proj[0] = cam[0] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[0]; //10% cvtest 338 modules/calib3d/test/test_undistort.cpp proj[5] = cam[4] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[4]; //10% cvtest 339 modules/calib3d/test/test_undistort.cpp proj[2] = cam[2] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.width; //15% cvtest 340 modules/calib3d/test/test_undistort.cpp proj[6] = cam[5] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.height; //15% cvtest 342 modules/calib3d/test/test_undistort.cpp proj[3] = (img_size.height + img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 343 modules/calib3d/test/test_undistort.cpp proj[7] = (img_size.height + img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 344 modules/calib3d/test/test_undistort.cpp proj[11] = (img_size.height + img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 350 modules/calib3d/test/test_undistort.cpp rotation.at<double>(0) = CV_PI*(cvtest::randReal(rng) - (double)0.5); // phi cvtest 351 modules/calib3d/test/test_undistort.cpp rotation.at<double>(1) = CV_PI*(cvtest::randReal(rng) - (double)0.5); // ksi cvtest 352 modules/calib3d/test/test_undistort.cpp rotation.at<double>(2) = CV_PI*(cvtest::randReal(rng) - (double)0.5); //khi cvtest 353 modules/calib3d/test/test_undistort.cpp cvtest::Rodrigues(rotation, _rot); cvtest 363 modules/calib3d/test/test_undistort.cpp zero_distortion = (cvtest::randInt(rng)%2) == 0 ? false : true; cvtest 364 modules/calib3d/test/test_undistort.cpp zero_new_cam = (cvtest::randInt(rng)%2) == 0 ? false : true; cvtest 365 modules/calib3d/test/test_undistort.cpp zero_R = (cvtest::randInt(rng)%2) == 0 ? false : true; cvtest 405 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[INPUT][1], __camera, __camera.type()); cvtest 406 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[INPUT][2], __distort, __distort.type()); cvtest 407 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[INPUT][3], __rot, __rot.type()); cvtest 408 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[INPUT][4], __proj, __proj.type()); cvtest 431 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[TEMP][0],__points, __points.type()); cvtest 440 modules/calib3d/test/test_undistort.cpp cvtest::convert(_ref_points, dst, dst.type()); cvtest 442 modules/calib3d/test/test_undistort.cpp cvtest::copy(test_mat[INPUT][0], test_mat[OUTPUT][0]); cvtest 501 modules/calib3d/test/test_undistort.cpp cvtest::convert(cvarrToMat(matP), cvarrToMat(__P), -1); cvtest 571 modules/calib3d/test/test_undistort.cpp class CV_InitUndistortRectifyMapTest : public cvtest::ArrayTest cvtest 623 modules/calib3d/test/test_undistort.cpp cvtest::ArrayTest::get_test_array_types_and_sizes(test_case_idx,sizes,types); cvtest 625 modules/calib3d/test/test_undistort.cpp useCPlus = ((cvtest::randInt(rng) % 2)!=0); cvtest 629 modules/calib3d/test/test_undistort.cpp types[INPUT][1] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 630 modules/calib3d/test/test_undistort.cpp types[INPUT][2] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 631 modules/calib3d/test/test_undistort.cpp types[INPUT][3] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 632 modules/calib3d/test/test_undistort.cpp types[INPUT][4] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 638 modules/calib3d/test/test_undistort.cpp if (cvtest::randInt(rng)%2) cvtest 640 modules/calib3d/test/test_undistort.cpp if (cvtest::randInt(rng)%2) cvtest 651 modules/calib3d/test/test_undistort.cpp if (cvtest::randInt(rng)%2) cvtest 666 modules/calib3d/test/test_undistort.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 671 modules/calib3d/test/test_undistort.cpp img_size.width = cvtest::randInt(rng) % MAX_X + 1; cvtest 672 modules/calib3d/test/test_undistort.cpp img_size.height = cvtest::randInt(rng) % MAX_Y + 1; cvtest 676 modules/calib3d/test/test_undistort.cpp mat_type = (cvtest::randInt(rng) % 2) == 0 ? CV_32FC1 : CV_16SC2; cvtest 677 modules/calib3d/test/test_undistort.cpp if ((cvtest::randInt(rng) % 4) == 0) cvtest 679 modules/calib3d/test/test_undistort.cpp if ((cvtest::randInt(rng) % 4) == 0) cvtest 686 modules/calib3d/test/test_undistort.cpp int typex = (cvtest::randInt(rng) % 2) == 0 ? CV_32FC1 : CV_16SC2; cvtest 710 modules/calib3d/test/test_undistort.cpp points[i].x = cvtest::randReal(rng)*img_size.width; cvtest 711 modules/calib3d/test/test_undistort.cpp points[i].y = cvtest::randReal(rng)*img_size.height; cvtest 716 modules/calib3d/test/test_undistort.cpp double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; cvtest 717 modules/calib3d/test/test_undistort.cpp cam[2] = (img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 718 modules/calib3d/test/test_undistort.cpp cam[5] = (img_size.height - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 719 modules/calib3d/test/test_undistort.cpp cam[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); cvtest 723 modules/calib3d/test/test_undistort.cpp dist[0] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 724 modules/calib3d/test/test_undistort.cpp dist[1] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 727 modules/calib3d/test/test_undistort.cpp if( cvtest::randInt(rng)%4 != 0 ) cvtest 729 modules/calib3d/test/test_undistort.cpp dist[2] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 730 modules/calib3d/test/test_undistort.cpp dist[3] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 732 modules/calib3d/test/test_undistort.cpp dist[4] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 750 modules/calib3d/test/test_undistort.cpp new_cam[0] = cam[0] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[0]; //10% cvtest 751 modules/calib3d/test/test_undistort.cpp new_cam[4] = cam[4] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[4]; //10% cvtest 752 modules/calib3d/test/test_undistort.cpp new_cam[2] = cam[2] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.width; //15% cvtest 753 modules/calib3d/test/test_undistort.cpp new_cam[5] = cam[5] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.height; //15% cvtest 759 modules/calib3d/test/test_undistort.cpp rotation.at<double>(0) = CV_PI/8*(cvtest::randReal(rng) - (double)0.5); // phi cvtest 760 modules/calib3d/test/test_undistort.cpp rotation.at<double>(1) = CV_PI/8*(cvtest::randReal(rng) - (double)0.5); // ksi cvtest 761 modules/calib3d/test/test_undistort.cpp rotation.at<double>(2) = CV_PI/3*(cvtest::randReal(rng) - (double)0.5); //khi cvtest 762 modules/calib3d/test/test_undistort.cpp cvtest::Rodrigues(rotation, _rot); cvtest 766 modules/calib3d/test/test_undistort.cpp cvtest::convert( _points, test_mat[INPUT][0], test_mat[INPUT][0].type()); cvtest 767 modules/calib3d/test/test_undistort.cpp cvtest::convert( _camera, test_mat[INPUT][1], test_mat[INPUT][1].type()); cvtest 768 modules/calib3d/test/test_undistort.cpp cvtest::convert( _distort, test_mat[INPUT][2], test_mat[INPUT][2].type()); cvtest 769 modules/calib3d/test/test_undistort.cpp cvtest::convert( _rot, test_mat[INPUT][3], test_mat[INPUT][3].type()); cvtest 770 modules/calib3d/test/test_undistort.cpp cvtest::convert( _new_cam, test_mat[INPUT][4], test_mat[INPUT][4].type()); cvtest 772 modules/calib3d/test/test_undistort.cpp zero_distortion = (cvtest::randInt(rng)%2) == 0 ? false : true; cvtest 773 modules/calib3d/test/test_undistort.cpp zero_new_cam = (cvtest::randInt(rng)%2) == 0 ? false : true; cvtest 774 modules/calib3d/test/test_undistort.cpp zero_R = (cvtest::randInt(rng)%2) == 0 ? false : true; cvtest 805 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[INPUT][1],_camera,_camera.type()); cvtest 806 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[INPUT][2],_distort,_distort.type()); cvtest 807 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[INPUT][3],_rot,_rot.type()); cvtest 808 modules/calib3d/test/test_undistort.cpp cvtest::convert(test_mat[INPUT][4],_new_cam,_new_cam.type()); cvtest 836 modules/calib3d/test/test_undistort.cpp cvtest::convert(ref_points, test_mat[REF_OUTPUT][0], test_mat[REF_OUTPUT][0].type()); cvtest 837 modules/calib3d/test/test_undistort.cpp cvtest::copy(test_mat[INPUT][0],test_mat[OUTPUT][0]); cvtest 862 modules/calib3d/test/test_undistort.cpp cvtest::convert(cvarrToMat(&_input1), cvarrToMat(&_camera), -1); cvtest 863 modules/calib3d/test/test_undistort.cpp cvtest::convert(cvarrToMat(&_input2), cvarrToMat(&_distort), -1); cvtest 864 modules/calib3d/test/test_undistort.cpp cvtest::convert(cvarrToMat(&_input3), cvarrToMat(&_rot), -1); cvtest 865 modules/calib3d/test/test_undistort.cpp cvtest::convert(cvarrToMat(&_input4), cvarrToMat(&_new_cam), -1); cvtest 891 modules/calib3d/test/test_undistort.cpp cvtest::convert(cvarrToMat(&ref_points), cvarrToMat(&dst), -1); cvtest 893 modules/calib3d/test/test_undistort.cpp cvtest::copy(test_mat[INPUT][0],test_mat[OUTPUT][0]); cvtest 45 modules/calib3d/test/test_undistort_badarg.cpp class CV_UndistortPointsBadArgTest : public cvtest::BadArgTest cvtest 279 modules/calib3d/test/test_undistort_badarg.cpp ts->set_failed_test_info(errcount > 0 ? cvtest::TS::FAIL_BAD_ARG_CHECK : cvtest::TS::OK); cvtest 284 modules/calib3d/test/test_undistort_badarg.cpp class CV_InitUndistortRectifyMapBadArgTest : public cvtest::BadArgTest cvtest 404 modules/calib3d/test/test_undistort_badarg.cpp ts->set_failed_test_info(errcount > 0 ? cvtest::TS::FAIL_BAD_ARG_CHECK : cvtest::TS::OK); cvtest 409 modules/calib3d/test/test_undistort_badarg.cpp class CV_UndistortBadArgTest : public cvtest::BadArgTest cvtest 521 modules/calib3d/test/test_undistort_badarg.cpp ts->set_failed_test_info(errcount > 0 ? cvtest::TS::FAIL_BAD_ARG_CHECK : cvtest::TS::OK); cvtest 7 modules/calib3d/test/test_undistort_points.cpp class CV_UndistortTest : public cvtest::BaseTest cvtest 87 modules/calib3d/test/test_undistort_points.cpp double diff = cvtest::norm(Mat(realUndistortedPoints), undistortedPoints, NORM_L2); cvtest 90 modules/calib3d/test/test_undistort_points.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 93 modules/calib3d/test/test_undistort_points.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 27 modules/core/test/test_arithm.cpp minval = depth < CV_32S ? cvtest::getMinVal(depth) : depth == CV_32S ? -1000000 : -1000.; cvtest 28 modules/core/test/test_arithm.cpp maxval = depth < CV_32S ? cvtest::getMaxVal(depth) : depth == CV_32S ? 1000000 : 1000.; cvtest 33 modules/core/test/test_arithm.cpp cvtest::randomSize(rng, 2, ARITHM_MAX_NDIMS, cvtest::ARITHM_MAX_SIZE_LOG, size); cvtest 38 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL_BUT_8S, 1, cvtest 106 modules/core/test/test_arithm.cpp cvtest::add(src[0], alpha, src.size() > 1 ? src[1] : Mat(), beta, gamma, temp, src[0].type()); cvtest 107 modules/core/test/test_arithm.cpp cvtest::copy(temp, dst, mask); cvtest 110 modules/core/test/test_arithm.cpp cvtest::add(src[0], alpha, src.size() > 1 ? src[1] : Mat(), beta, gamma, dst, src[0].type()); cvtest 199 modules/core/test/test_arithm.cpp minval = depth < CV_32S ? cvtest::getMinVal(depth) : depth == CV_32S ? -1000000 : -1000.; cvtest 200 modules/core/test/test_arithm.cpp maxval = depth < CV_32S ? cvtest::getMaxVal(depth) : depth == CV_32S ? 1000000 : 1000.; cvtest 210 modules/core/test/test_arithm.cpp cvtest::multiply(src[0], src[1], dst, alpha); cvtest 227 modules/core/test/test_arithm.cpp cvtest::divide(src[0], src[1], dst, alpha); cvtest 244 modules/core/test/test_arithm.cpp cvtest::divide(Mat(), src[0], dst, alpha); cvtest 261 modules/core/test/test_arithm.cpp cvtest::add(src[0], 1, src[1], -1, Scalar::all(0), dst, src[0].type(), true); cvtest 274 modules/core/test/test_arithm.cpp cvtest::add(src[0], 1, Mat(), 0, -gamma, dst, src[0].type(), true); cvtest 295 modules/core/test/test_arithm.cpp cvtest::logicOp(src[0], src[1], temp, opcode); cvtest 296 modules/core/test/test_arithm.cpp cvtest::copy(temp, dst, mask); cvtest 299 modules/core/test/test_arithm.cpp cvtest::logicOp(src[0], src[1], dst, opcode); cvtest 328 modules/core/test/test_arithm.cpp cvtest::logicOp(src[0], gamma, temp, opcode); cvtest 329 modules/core/test/test_arithm.cpp cvtest::copy(temp, dst, mask); cvtest 332 modules/core/test/test_arithm.cpp cvtest::logicOp(src[0], gamma, dst, opcode); cvtest 350 modules/core/test/test_arithm.cpp cvtest::min(src[0], src[1], dst); cvtest 367 modules/core/test/test_arithm.cpp cvtest::max(src[0], src[1], dst); cvtest 384 modules/core/test/test_arithm.cpp cvtest::min(src[0], gamma[0], dst); cvtest 401 modules/core/test/test_arithm.cpp cvtest::max(src[0], gamma[0], dst); cvtest 423 modules/core/test/test_arithm.cpp cvtest::compare(src[0], src[1], dst, cmpop); cvtest 427 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL_BUT_8S, 1, 1); cvtest 453 modules/core/test/test_arithm.cpp cvtest::compare(src[0], gamma[0], dst, cmpop); cvtest 457 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL_BUT_8S, 1, 1); cvtest 476 modules/core/test/test_arithm.cpp cvtest::copy(src[0], dst, mask); cvtest 480 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL, 1, ARITHM_MAX_CHANNELS); cvtest 498 modules/core/test/test_arithm.cpp cvtest::set(dst, gamma, mask); cvtest 502 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL, 1, ARITHM_MAX_CHANNELS); cvtest 659 modules/core/test/test_arithm.cpp cvtest::inRangeS(src[0], gamma, gamma1, dst); cvtest 686 modules/core/test/test_arithm.cpp cvtest::min(src[1], src[2], lb); cvtest 687 modules/core/test/test_arithm.cpp cvtest::max(src[1], src[2], rb); cvtest 694 modules/core/test/test_arithm.cpp cvtest::min(src[1], src[2], lb); cvtest 695 modules/core/test/test_arithm.cpp cvtest::max(src[1], src[2], rb); cvtest 697 modules/core/test/test_arithm.cpp cvtest::inRange(src[0], lb, rb, dst); cvtest 715 modules/core/test/test_arithm.cpp cvtest::convert(src[0], dst, CV_MAKETYPE(ddepth, src[0].channels()), alpha, gamma[0]); cvtest 719 modules/core/test/test_arithm.cpp int srctype = cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL, 1, ARITHM_MAX_CHANNELS); cvtest 720 modules/core/test/test_arithm.cpp ddepth = cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL, 1, 1); cvtest 750 modules/core/test/test_arithm.cpp cvtest::add(src[0], alpha, Mat(), 0, Scalar::all(gamma[0]), dst, CV_8UC(src[0].channels()), true); cvtest 814 modules/core/test/test_arithm.cpp cvtest::randomSize(rng, 2, 2, cvtest::ARITHM_MAX_SIZE_LOG, size); cvtest 822 modules/core/test/test_arithm.cpp cvtest::flip(src[0], dst, flipcode); cvtest 840 modules/core/test/test_arithm.cpp cvtest::randomSize(rng, 2, 2, cvtest::ARITHM_MAX_SIZE_LOG, size); cvtest 848 modules/core/test/test_arithm.cpp cvtest::transpose(src[0], dst); cvtest 861 modules/core/test/test_arithm.cpp cvtest::randomSize(rng, 2, 2, cvtest::ARITHM_MAX_SIZE_LOG, size); cvtest 869 modules/core/test/test_arithm.cpp cvtest::setIdentity(dst, gamma); cvtest 886 modules/core/test/test_arithm.cpp cvtest::set(dst, Scalar::all(0)); cvtest 958 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_FLT, 1, ARITHM_MAX_CHANNELS); cvtest 971 modules/core/test/test_arithm.cpp cvtest::exp(src[0], dst); cvtest 985 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_FLT, 1, ARITHM_MAX_CHANNELS); cvtest 995 modules/core/test/test_arithm.cpp cvtest::exp(src[0], temp); cvtest 1001 modules/core/test/test_arithm.cpp cvtest::exp(src[0], temp); cvtest 1002 modules/core/test/test_arithm.cpp cvtest::log(temp, dst); cvtest 1071 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_FLT, 1, 1); cvtest 1088 modules/core/test/test_arithm.cpp cvtest::cartToPolar(src[0], src[1], mag, angle, angleInDegrees); cvtest 1120 modules/core/test/test_arithm.cpp dst.at<Scalar>(0,0) = cvtest::mean(src[0], mask); cvtest 1143 modules/core/test/test_arithm.cpp dst.at<Scalar>(0,0) = cvtest::mean(src[0])*(double)src[0].total(); cvtest 1158 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL, 1, 1); cvtest 1172 modules/core/test/test_arithm.cpp cvtest::compare(src[0], 0, temp, CMP_NE); cvtest 1174 modules/core/test/test_arithm.cpp cvtest::set(temp, Scalar::all(0), mask); cvtest 1176 modules/core/test/test_arithm.cpp dst.at<int>(0,0) = saturate_cast<int>(cvtest::mean(temp)[0]/255*temp.total()); cvtest 1203 modules/core/test/test_arithm.cpp cvtest::convert(src[0], temp, CV_64F); cvtest 1204 modules/core/test/test_arithm.cpp cvtest::multiply(temp, temp, temp); cvtest 1205 modules/core/test/test_arithm.cpp Scalar mean = cvtest::mean(src[0], mask); cvtest 1206 modules/core/test/test_arithm.cpp Scalar sqmean = cvtest::mean(temp, mask); cvtest 1238 modules/core/test/test_arithm.cpp int type = cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL_BUT_8S, 1, 4); cvtest 1262 modules/core/test/test_arithm.cpp dst.at<double>(0,0) = cvtest::norm(src[0], normType, mask); cvtest 1263 modules/core/test/test_arithm.cpp dst.at<double>(0,1) = cvtest::norm(src[0], src[1], normType, mask); cvtest 1284 modules/core/test/test_arithm.cpp return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL_BUT_8S, 1, 1); cvtest 1313 modules/core/test/test_arithm.cpp cvtest::minMaxLoc(src[0], &minval, &maxval, &minidx, &maxidx, mask); cvtest 1325 modules/core/test/test_arithm.cpp typedef Ptr<cvtest::BaseElemWiseOp> ElemWiseOpPtr; cvtest 1333 modules/core/test/test_arithm.cpp RNG rng((uint64)cvtest::ARITHM_RNG_SEED); cvtest 1334 modules/core/test/test_arithm.cpp for( testIdx = 0; testIdx < cvtest::ARITHM_NTESTS; testIdx++ ) cvtest 1340 modules/core/test/test_arithm.cpp bool haveMask = (op->flags & cvtest::BaseElemWiseOp::SUPPORT_MASK) != 0 && rng.uniform(0, 4) == 0; cvtest 1347 modules/core/test/test_arithm.cpp src[i] = cvtest::randomMat(rng, size, type, minval, maxval, true); cvtest 1350 modules/core/test/test_arithm.cpp mask = cvtest::randomMat(rng, size, CV_8U, 0, 2, true); cvtest 1352 modules/core/test/test_arithm.cpp if( (haveMask || ninputs == 0) && !(op->flags & cvtest::BaseElemWiseOp::SCALAR_OUTPUT)) cvtest 1354 modules/core/test/test_arithm.cpp dst0 = cvtest::randomMat(rng, size, type, minval, maxval, false); cvtest 1355 modules/core/test/test_arithm.cpp dst = cvtest::randomMat(rng, size, type, minval, maxval, true); cvtest 1356 modules/core/test/test_arithm.cpp cvtest::copy(dst, dst0); cvtest 1364 modules/core/test/test_arithm.cpp ASSERT_PRED_FORMAT2(cvtest::MatComparator(maxErr, op->context), dst0, dst) << "\nsrc[0] ~ " << cvtest 1365 modules/core/test/test_arithm.cpp cvtest::MatInfo(!src.empty() ? src[0] : Mat()) << "\ntestCase #" << testIdx << "\n"; cvtest 1370 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Copy, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::CopyOp))); cvtest 1371 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Set, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::SetOp))); cvtest 1372 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_SetZero, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::SetZeroOp))); cvtest 1373 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_ConvertScale, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::ConvertScaleOp))); cvtest 1374 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_ConvertScaleAbs, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::ConvertScaleAbsOp))); cvtest 1376 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Add, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::AddOp))); cvtest 1377 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Sub, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::SubOp))); cvtest 1378 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_AddS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::AddSOp))); cvtest 1379 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_SubRS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::SubRSOp))); cvtest 1380 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_ScaleAdd, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::ScaleAddOp))); cvtest 1381 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_AddWeighted, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::AddWeightedOp))); cvtest 1382 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_AbsDiff, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::AbsDiffOp))); cvtest 1385 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_AbsDiffS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::AbsDiffSOp))); cvtest 1387 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_And, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::LogicOp('&')))); cvtest 1388 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_AndS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::LogicSOp('&')))); cvtest 1389 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Or, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::LogicOp('|')))); cvtest 1390 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_OrS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::LogicSOp('|')))); cvtest 1391 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Xor, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::LogicOp('^')))); cvtest 1392 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_XorS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::LogicSOp('^')))); cvtest 1393 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Not, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::LogicSOp('~')))); cvtest 1395 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Max, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::MaxOp))); cvtest 1396 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_MaxS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::MaxSOp))); cvtest 1397 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Min, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::MinOp))); cvtest 1398 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_MinS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::MinSOp))); cvtest 1400 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Mul, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::MulOp))); cvtest 1401 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Div, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::DivOp))); cvtest 1402 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Recip, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::RecipOp))); cvtest 1404 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Cmp, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::CmpOp))); cvtest 1405 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_CmpS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::CmpSOp))); cvtest 1407 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_InRangeS, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::InRangeSOp))); cvtest 1408 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_InRange, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::InRangeOp))); cvtest 1410 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Flip, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::FlipOp))); cvtest 1411 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Transpose, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::TransposeOp))); cvtest 1412 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_SetIdentity, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::SetIdentityOp))); cvtest 1414 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Exp, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::ExpOp))); cvtest 1415 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Log, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::LogOp))); cvtest 1417 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_CountNonZero, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::CountNonZeroOp))); cvtest 1418 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Mean, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::MeanOp))); cvtest 1419 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_MeanStdDev, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::MeanStdDevOp))); cvtest 1420 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Sum, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::SumOp))); cvtest 1421 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_Norm, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::NormOp))); cvtest 1422 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_MinMaxLoc, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::MinMaxLocOp))); cvtest 1423 modules/core/test/test_arithm.cpp INSTANTIATE_TEST_CASE_P(Core_CartToPolarToCart, ElemWiseTest, ::testing::Values(ElemWiseOpPtr(new cvtest::CartToPolarToCartOp))); cvtest 1426 modules/core/test/test_arithm.cpp class CV_ArithmMaskTest : public cvtest::BaseTest cvtest 1503 modules/core/test/test_arithm.cpp CV_Assert( cvtest::norm(c, d1, CV_C) <= DBL_EPSILON ); cvtest 1516 modules/core/test/test_arithm.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 1577 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cvtest::norm(dst, ref_dst, cv::NORM_INF)); cvtest 47 modules/core/test/test_concatenation.cpp class Core_ConcatenationTest : public cvtest::BaseTest cvtest 93 modules/core/test/test_concatenation.cpp cvtest::BaseTest::prepare_test_case( test_case_idx ); cvtest 124 modules/core/test/test_concatenation.cpp return cvtest::TS::OK; cvtest 127 modules/core/test/test_concatenation.cpp ts->printf( cvtest::TS::LOG, "Concatenation failed"); cvtest 128 modules/core/test/test_concatenation.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISMATCH ); cvtest 131 modules/core/test/test_concatenation.cpp return cvtest::TS::OK; cvtest 58 modules/core/test/test_countnonzero.cpp class CV_CountNonZeroTest: public cvtest::BaseTest cvtest 315 modules/core/test/test_ds.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT );\ cvtest 319 modules/core/test/test_ds.cpp class Core_DynStructBaseTest : public cvtest::BaseTest cvtest 382 modules/core/test/test_ds.cpp cvtest::BaseTest::clear(); cvtest 388 modules/core/test/test_ds.cpp int code = cvtest::BaseTest::read_params( fs ); cvtest 407 modules/core/test/test_ds.cpp struct_count = cvtest::clipInt( struct_count, 1, 100 ); cvtest 408 modules/core/test/test_ds.cpp max_struct_size = cvtest::clipInt( max_struct_size, 1, 1<<20 ); cvtest 409 modules/core/test/test_ds.cpp generations = cvtest::clipInt( generations, 1, 100 ); cvtest 410 modules/core/test/test_ds.cpp iterations = cvtest::clipInt( iterations, 100, 1<<20 ); cvtest 412 modules/core/test/test_ds.cpp min_log_storage_block_size = cvtest::clipInt( min_log_storage_block_size, 7, 20 ); cvtest 413 modules/core/test/test_ds.cpp max_log_storage_block_size = cvtest::clipInt( max_log_storage_block_size, cvtest 416 modules/core/test/test_ds.cpp min_log_elem_size = cvtest::clipInt( min_log_elem_size, 0, 8 ); cvtest 417 modules/core/test/test_ds.cpp max_log_elem_size = cvtest::clipInt( max_log_elem_size, min_log_elem_size, 10 ); cvtest 443 modules/core/test/test_ds.cpp ts->printf( cvtest::TS::LOG, "file %s, line %d: %s\n(\"%s\" failed).\n" cvtest 446 modules/core/test/test_ds.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 534 modules/core/test/test_ds.cpp t = cvtest::randReal(rng)*(max_log_elem_size - min_log_elem_size) + min_log_elem_size; cvtest 542 modules/core/test/test_ds.cpp sseq->count = cvtest::randInt( rng ) % max_struct_size; cvtest 544 modules/core/test/test_ds.cpp cvtest::randUni( rng, m, Scalar::all(0), Scalar::all(256) ); cvtest 551 modules/core/test/test_ds.cpp int k = cvtest::randInt( rng ) % cur_count; cvtest 557 modules/core/test/test_ds.cpp int hdr_size = (cvtest::randInt(rng) % 10)*4 + sizeof(CvSeq); cvtest 561 modules/core/test/test_ds.cpp if( cvtest::randInt(rng) % 2 ) cvtest 572 modules/core/test/test_ds.cpp cvSetSeqBlockSize( writer[struct_idx].seq, cvtest::randInt( rng ) % 10000 ); cvtest 613 modules/core/test/test_ds.cpp int idx = cvtest::randInt(rng) % (sseq->count*3) - sseq->count*3/2; cvtest 656 modules/core/test/test_ds.cpp int pos = cvtest::randInt(rng) % 2; cvtest 672 modules/core/test/test_ds.cpp int op = cvtest::randInt(rng) % max_val; cvtest 680 modules/core/test/test_ds.cpp new_pos = cvtest::randInt(rng) % (total*2) - total; cvtest 746 modules/core/test/test_ds.cpp struct_idx = cvtest::randInt(rng) % struct_count; cvtest 747 modules/core/test/test_ds.cpp int op = cvtest::randInt(rng) % max_op; cvtest 762 modules/core/test/test_ds.cpp cvtest::randUni( rng, elem_mat, cvScalarAll(0), cvScalarAll(255) ); cvtest 777 modules/core/test/test_ds.cpp pos = cvtest::randInt(rng) % (sseq->count + 1); cvtest 808 modules/core/test/test_ds.cpp pos = cvtest::randInt(rng) % sseq->count; cvtest 841 modules/core/test/test_ds.cpp count = cvtest::randInt( rng ) % (sseq->max_count - sseq->count + 1); cvtest 843 modules/core/test/test_ds.cpp cvtest::randUni( rng, elem_mat, cvScalarAll(0), cvScalarAll(255) ); cvtest 846 modules/core/test/test_ds.cpp pos = whence < 0 ? 0 : whence > 0 ? sseq->count : (int)(cvtest::randInt(rng) % (sseq->count+1)); cvtest 867 modules/core/test/test_ds.cpp pos = count > 0 ? (int)(cvtest::randInt(rng) % count + pos) : MAX(pos-1,0); cvtest 887 modules/core/test/test_ds.cpp count = cvtest::randInt(rng) % (sseq->count+1); cvtest 890 modules/core/test/test_ds.cpp (int)(cvtest::randInt(rng) % (sseq->count - count + 1)); cvtest 931 modules/core/test/test_ds.cpp int copy_data = cvtest::randInt(rng) % 2; cvtest 932 modules/core/test/test_ds.cpp count = cvtest::randInt(rng) % (seq->total + 1); cvtest 933 modules/core/test/test_ds.cpp pos = cvtest::randInt(rng) % (seq->total - count + 1); cvtest 941 modules/core/test/test_ds.cpp int test_idx = cvtest::randInt(rng) % count; cvtest 998 modules/core/test/test_ds.cpp t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) cvtest 1023 modules/core/test/test_ds.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1086 modules/core/test/test_ds.cpp t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) cvtest 1118 modules/core/test/test_ds.cpp if( sseq->count > 0 && cvtest::randInt(rng) % 2 == 0 ) cvtest 1120 modules/core/test/test_ds.cpp slice.end_index = cvtest::randInt(rng) % sseq->count + 1; cvtest 1121 modules/core/test/test_ds.cpp slice.start_index = cvtest::randInt(rng) % (sseq->count - slice.end_index + 1); cvtest 1135 modules/core/test/test_ds.cpp int idx0 = cvtest::randInt(rng) % sseq->count, idx = 0; cvtest 1160 modules/core/test/test_ds.cpp if( cvtest::randInt(rng) % 2 == 0 ) cvtest 1162 modules/core/test/test_ds.cpp slice.end_index = cvtest::randInt(rng) % sseq->count + 1; cvtest 1163 modules/core/test/test_ds.cpp slice.start_index = cvtest::randInt(rng) % (sseq->count - slice.end_index + 1); cvtest 1176 modules/core/test/test_ds.cpp int idx0 = cvtest::randInt(rng) % sseq->count, idx = 0; cvtest 1249 modules/core/test/test_ds.cpp struct_idx = cvtest::randInt(rng) % struct_count; cvtest 1255 modules/core/test/test_ds.cpp int op = cvtest::randInt(rng) % (iter <= iters/10 ? 2 : max_op); cvtest 1261 modules/core/test/test_ds.cpp if( iter > iters/10 && cvtest::randInt(rng)%200 == 0 ) // clear set cvtest 1279 modules/core/test/test_ds.cpp cvtest::randUni( rng, elem_mat, cvScalarAll(0), cvScalarAll(255) ); cvtest 1289 modules/core/test/test_ds.cpp pass_data = cvtest::randInt(rng) % 2; cvtest 1316 modules/core/test/test_ds.cpp idx = cvtest::randInt(rng) % sset->max_count; cvtest 1384 modules/core/test/test_ds.cpp t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) + min_log_storage_block_size; cvtest 1389 modules/core/test/test_ds.cpp t = cvtest::randReal(rng)*(max_log_elem_size - min_log_elem_size) + min_log_elem_size; cvtest 1465 modules/core/test/test_ds.cpp struct_idx = cvtest::randInt(rng) % struct_count; cvtest 1477 modules/core/test/test_ds.cpp int op = cvtest::randInt(rng) % max_op; cvtest 1481 modules/core/test/test_ds.cpp if( cvtest::randInt(rng) % 200 == 0 ) // clear graph cvtest 1509 modules/core/test/test_ds.cpp cvtest::randUni( rng, elem_mat, cvScalarAll(0), cvScalarAll(255) ); cvtest 1515 modules/core/test/test_ds.cpp pass_data = cvtest::randInt(rng) % 2; cvtest 1536 modules/core/test/test_ds.cpp idx = cvtest::randInt(rng) % sgraph->vtx->max_count; cvtest 1552 modules/core/test/test_ds.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1591 modules/core/test/test_ds.cpp int j = cvtest::randInt(rng) % sgraph->vtx->count; cvtest 1619 modules/core/test/test_ds.cpp cvtest::randUni( rng, elem_mat, cvScalarAll(0), cvScalarAll(255) ); cvtest 1627 modules/core/test/test_ds.cpp pass_data = cvtest::randInt(rng) % 2; cvtest 1634 modules/core/test/test_ds.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1687 modules/core/test/test_ds.cpp int j = cvtest::randInt(rng) % sgraph->vtx->count; cvtest 1709 modules/core/test/test_ds.cpp by_ptr = cvtest::randInt(rng) % 2; cvtest 1808 modules/core/test/test_ds.cpp t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) + min_log_storage_block_size; cvtest 1820 modules/core/test/test_ds.cpp t = cvtest::randReal(rng)*(max_log_elem_size - min_log_elem_size) + min_log_elem_size; cvtest 1876 modules/core/test/test_ds.cpp int is_oriented = cvtest::randInt(rng) % 2; cvtest 1877 modules/core/test/test_ds.cpp int i, vtx_count = cvtest::randInt(rng) % max_struct_size; cvtest 1878 modules/core/test/test_ds.cpp int edge_count = cvtest::randInt(rng) % MAX(vtx_count*20, 1); cvtest 1894 modules/core/test/test_ds.cpp int j = cvtest::randInt(rng) % vtx_count; cvtest 1895 modules/core/test/test_ds.cpp int k = cvtest::randInt(rng) % vtx_count; cvtest 1925 modules/core/test/test_ds.cpp t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) + min_log_storage_block_size; cvtest 2027 modules/core/test/test_ds.cpp ts->printf( cvtest::TS::LOG, "%s", event ); cvtest 2031 modules/core/test/test_ds.cpp ts->printf( cvtest::TS::LOG, ": (%d,%d)", a, b ); cvtest 2033 modules/core/test/test_ds.cpp ts->printf( cvtest::TS::LOG, ": %d", a ); cvtest 2036 modules/core/test/test_ds.cpp ts->printf( cvtest::TS::LOG, "\n" ); cvtest 2057 modules/core/test/test_ds.cpp CvGraphVtx* start_vtx = cvtest::randInt(rng) % 2 || graph->active_count == 0 ? 0 : cvtest 2058 modules/core/test/test_ds.cpp cvGetGraphVtx( graph, cvtest::randInt(rng) % graph->active_count ); cvtest 2095 modules/core/test/test_ds.cpp CV_TS_SEQ_CHECK_CONDITION( cvtest::norm(Mat(vtx_mask),CV_L1) == graph->active_count && cvtest 2096 modules/core/test/test_ds.cpp cvtest::norm(Mat(edge_mask),CV_L1) == graph->edges->active_count, cvtest 133 modules/core/test/test_dxt.cpp cvtest::transpose(tmp, dst); cvtest 242 modules/core/test/test_dxt.cpp cvtest::transpose( tmp, dst ); cvtest 494 modules/core/test/test_dxt.cpp class CxCore_DXTBaseTest : public cvtest::ArrayTest cvtest 497 modules/core/test/test_dxt.cpp typedef cvtest::ArrayTest Base; cvtest 538 modules/core/test/test_dxt.cpp int bits = cvtest::randInt(rng); cvtest 539 modules/core/test/test_dxt.cpp int depth = cvtest::randInt(rng)%2 + CV_32F; cvtest 655 modules/core/test/test_dxt.cpp cvtest::fixCCS( test_mat[INPUT][0], test_mat[OUTPUT][0].cols, flags ); cvtest 658 modules/core/test/test_dxt.cpp cvtest::copy( test_mat[INPUT][test_case_idx & (int)spectrum_mode], cvtest 712 modules/core/test/test_dxt.cpp cvtest::convertFromCCS( cvdft_dst, cvdft_dst, cvtest 715 modules/core/test/test_dxt.cpp cvtest::insert( src, *tmp_src, 0 ); cvtest 719 modules/core/test/test_dxt.cpp cvtest::convertFromCCS( src, src, *tmp_src, flags ); cvtest 725 modules/core/test/test_dxt.cpp cvtest::DFT_1D( *tmp_src, *tmp_dst, flags ); cvtest 727 modules/core/test/test_dxt.cpp cvtest::DFT_2D( *tmp_src, *tmp_dst, flags ); cvtest 730 modules/core/test/test_dxt.cpp cvtest::extract( *tmp_dst, dst, 0 ); cvtest 767 modules/core/test/test_dxt.cpp cvtest::DCT_1D( src, dst, flags ); cvtest 769 modules/core/test/test_dxt.cpp cvtest::DCT_2D( src, dst, flags ); cvtest 817 modules/core/test/test_dxt.cpp cvtest::convertFromCCS( *src1, *src1, dst, flags ); cvtest 818 modules/core/test/test_dxt.cpp cvtest::convertFromCCS( *src2, *src2, dst0, flags ); cvtest 823 modules/core/test/test_dxt.cpp cvtest::mulComplex( *src1, *src2, dst0, flags ); cvtest 827 modules/core/test/test_dxt.cpp cvtest::convertFromCCS( temp, temp, dst, flags ); cvtest 835 modules/core/test/test_dxt.cpp class Core_DFTComplexOutputTest : public cvtest::BaseTest cvtest 858 modules/core/test/test_dxt.cpp if (cvtest::norm(dst, dstz, NORM_INF) > 1e-3) cvtest 69 modules/core/test/test_eigen.cpp class Core_EigenTest: public cvtest::BaseTest cvtest 237 modules/core/test/test_eigen.cpp double diff = cvtest::norm(UUt, E, NORM_TYPE[i]); cvtest 346 modules/core/test/test_eigen.cpp double diff = cvtest::norm(disparity, NORM_TYPE[i]); cvtest 375 modules/core/test/test_eigen.cpp double diff = cvtest::norm(eigen_values_1, eigen_values_2, NORM_TYPE[i]); cvtest 16 modules/core/test/test_io.cpp idx[j] = cvtest::randInt(rng) % sz[j]; cvtest 17 modules/core/test/test_io.cpp double val = cvtest::randReal(rng)*(b - a) + a; cvtest 83 modules/core/test/test_io.cpp class Core_IOTest : public cvtest::BaseTest cvtest 110 modules/core/test/test_io.cpp int test_int = (int)cvtest::randInt(rng); cvtest 111 modules/core/test/test_io.cpp double test_real = (cvtest::randInt(rng)%2?1:-1)*exp(cvtest::randReal(rng)*18-9); cvtest 114 modules/core/test/test_io.cpp int depth = cvtest::randInt(rng) % (CV_64F+1); cvtest 115 modules/core/test/test_io.cpp int cn = cvtest::randInt(rng) % 4 + 1; cvtest 116 modules/core/test/test_io.cpp Mat test_mat(cvtest::randInt(rng)%30+1, cvtest::randInt(rng)%30+1, CV_MAKETYPE(depth, cn)); cvtest 145 modules/core/test/test_io.cpp depth = cvtest::randInt(rng) % (CV_64F+1); cvtest 146 modules/core/test/test_io.cpp cn = cvtest::randInt(rng) % 4 + 1; cvtest 148 modules/core/test/test_io.cpp static_cast<int>(cvtest::randInt(rng)%10+1), cvtest 149 modules/core/test/test_io.cpp static_cast<int>(cvtest::randInt(rng)%10+1), cvtest 150 modules/core/test/test_io.cpp static_cast<int>(cvtest::randInt(rng)%10+1), cvtest 164 modules/core/test/test_io.cpp static_cast<int>(cvtest::randInt(rng)%10+1), cvtest 165 modules/core/test/test_io.cpp static_cast<int>(cvtest::randInt(rng)%10+1), cvtest 166 modules/core/test/test_io.cpp static_cast<int>(cvtest::randInt(rng)%10+1), cvtest 167 modules/core/test/test_io.cpp static_cast<int>(cvtest::randInt(rng)%10+1), cvtest 169 modules/core/test/test_io.cpp SparseMat test_sparse_mat = cvTsGetRandomSparseMat(4, ssz, cvtest::randInt(rng)%(CV_64F+1), cvtest 170 modules/core/test/test_io.cpp cvtest::randInt(rng) % 10000, 0, 100, rng); cvtest 195 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "filename %s can not be read\n", !mem ? filename.c_str() : content.c_str()); cvtest 196 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISSING_TEST_DATA ); cvtest 208 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the read scalars are not correct\n" ); cvtest 209 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 222 modules/core/test/test_io.cpp cvtest::cmpEps( cv::cvarrToMat(&stub1), cv::cvarrToMat(&_test_stub1), &max_diff, 0, &pt, true) < 0 ) cvtest 224 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the read matrix is not correct: (%.20g vs %.20g) at (%d,%d)\n", cvtest 227 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 238 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the read nd-matrix is not correct\n" ); cvtest 239 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 252 modules/core/test/test_io.cpp cvtest::cmpEps( cv::cvarrToMat(&stub1), cv::cvarrToMat(&_test_stub1), &max_diff, 0, &pt, true) < 0 ) cvtest 254 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "readObj method: the read nd matrix is not correct: (%.20g vs %.20g) vs at (%d,%d)\n", cvtest 257 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 270 modules/core/test/test_io.cpp cvtest::cmpEps( cv::cvarrToMat(&stub1), cv::cvarrToMat(&_test_stub1), &max_diff, 0, &pt, true) < 0 ) cvtest 272 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "C++ method: the read nd matrix is not correct: (%.20g vs %.20g) vs at (%d,%d)\n", cvtest 275 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 292 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the read sparse matrix is not correct\n" ); cvtest 293 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 309 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the test list is incorrect\n" ); cvtest 310 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 353 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the test map is incorrect\n" ); cvtest 354 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 362 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the cloned or read graph have wrong number of vertices or edges\n" ); cvtest 363 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 374 modules/core/test/test_io.cpp ts->printf( cvtest::TS::LOG, "the cloned or read graph do not have the edge (%d, %d)\n", edges[i][0], edges[i][1] ); cvtest 375 modules/core/test/test_io.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 425 modules/core/test/test_io.cpp class CV_MiscIOTest : public cvtest::BaseTest cvtest 491 modules/core/test/test_io.cpp CV_Assert( cvtest::norm(Mat(mi3), Mat(mi4), CV_C) == 0 ); cvtest 493 modules/core/test/test_io.cpp double n = cvtest::norm(mv3[0], mv4[0], CV_C); cvtest 508 modules/core/test/test_io.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 545 modules/core/test/test_io.cpp std::string patternLena = cvtest::TS::ptr()->get_data_path() + "lena*.*"; cvtest 546 modules/core/test/test_io.cpp std::string patternLenaPng = cvtest::TS::ptr()->get_data_path() + "lena.png"; cvtest 9 modules/core/test/test_ippasync.cpp using namespace cvtest; cvtest 55 modules/core/test/test_lpsolver.cpp ASSERT_LT(cvtest::norm(z, etalon_z, cv::NORM_L1), 1e-12); cvtest 66 modules/core/test/test_lpsolver.cpp ASSERT_LT(cvtest::norm(z, etalon_z, cv::NORM_L1), 1e-12); cvtest 77 modules/core/test/test_lpsolver.cpp ASSERT_LT(cvtest::norm(z, etalon_z, cv::NORM_L1), 1e-12); cvtest 92 modules/core/test/test_lpsolver.cpp ASSERT_LT(cvtest::norm(z, etalon_z, cv::NORM_L1), 1e-12); cvtest 9 modules/core/test/test_mat.cpp class Core_ReduceTest : public cvtest::BaseTest cvtest 121 modules/core/test/test_mat.cpp return cvtest::TS::OK; cvtest 159 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, msg ); cvtest 160 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_BAD_ACCURACY; cvtest 162 modules/core/test/test_mat.cpp return cvtest::TS::OK; cvtest 167 modules/core/test/test_mat.cpp int code = cvtest::TS::OK, tempCode; cvtest 192 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 196 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 200 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 204 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 211 modules/core/test/test_mat.cpp int code = cvtest::TS::OK, tempCode; cvtest 215 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 218 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 221 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 224 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 228 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 231 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 235 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 238 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 242 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 245 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 249 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 256 modules/core/test/test_mat.cpp int code = cvtest::TS::OK, tempCode; cvtest 259 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 262 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 269 modules/core/test/test_mat.cpp int code = cvtest::TS::OK, tempCode; cvtest 272 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 275 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 278 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 281 modules/core/test/test_mat.cpp code = tempCode != cvtest::TS::OK ? tempCode : code; cvtest 289 modules/core/test/test_mat.cpp class Core_PCATest : public cvtest::BaseTest cvtest 343 modules/core/test/test_mat.cpp err = cvtest::norm( Qv, lv, NORM_L2 ); cvtest 346 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of eigen(); err = %f\n", err ); cvtest 347 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 353 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.eigenvalues, subEval, NORM_L2 ); cvtest 356 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "pca.eigenvalues is incorrect (CV_PCA_DATA_AS_ROW); err = %f\n", err ); cvtest 357 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 365 modules/core/test/test_mat.cpp err = cvtest::norm( r0, r1, CV_L2 ); cvtest 369 modules/core/test/test_mat.cpp double err2 = cvtest::norm(r0, r1, CV_L2); cvtest 377 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "pca.eigenvectors is incorrect (CV_PCA_DATA_AS_ROW); err = %f\n", err ); cvtest 378 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "max diff is %g at (i=%d, j=%d) (%g vs %g)\n", cvtest 381 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 393 modules/core/test/test_mat.cpp err = cvtest::norm(rPrjTestPoints.row(i), prj, CV_RELATIVE_L2); cvtest 396 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of project() (CV_PCA_DATA_AS_ROW); err = %f\n", err ); cvtest 397 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 402 modules/core/test/test_mat.cpp err = cvtest::norm( rBackPrjTestPoints.row(i), backPrj, CV_RELATIVE_L2 ); cvtest 405 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of backProject() (CV_PCA_DATA_AS_ROW); err = %f\n", err ); cvtest 406 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 415 modules/core/test/test_mat.cpp err = cvtest::norm(cv::abs(ocvPrjTestPoints), cv::abs(rPrjTestPoints.t()), CV_RELATIVE_L2 ); cvtest 418 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of project() (CV_PCA_DATA_AS_COL); err = %f\n", err ); cvtest 419 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 422 modules/core/test/test_mat.cpp err = cvtest::norm(cPCA.backProject(ocvPrjTestPoints), rBackPrjTestPoints.t(), CV_RELATIVE_L2 ); cvtest 425 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of backProject() (CV_PCA_DATA_AS_COL); err = %f\n", err ); cvtest 426 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 436 modules/core/test/test_mat.cpp err = cvtest::norm(cv::abs(rvPrjTestPoints.rowRange(0,maxComponents)), cv::abs(rPrjTestPoints.t()), CV_RELATIVE_L2 ); cvtest 438 modules/core/test/test_mat.cpp err = cvtest::norm(cv::abs(rvPrjTestPoints), cv::abs(rPrjTestPoints.colRange(0,cPCA.eigenvectors.rows).t()), CV_RELATIVE_L2 ); cvtest 442 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of project() (CV_PCA_DATA_AS_COL); retainedVariance=0.95; err = %f\n", err ); cvtest 443 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 446 modules/core/test/test_mat.cpp err = cvtest::norm(cPCA.backProject(rvPrjTestPoints), rBackPrjTestPoints.t(), CV_RELATIVE_L2 ); cvtest 449 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of backProject() (CV_PCA_DATA_AS_COL); retainedVariance=0.95; err = %f\n", err ); cvtest 450 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 470 modules/core/test/test_mat.cpp err = cvtest::norm(prjTestPoints, rPrjTestPoints, CV_RELATIVE_L2); cvtest 473 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of cvProjectPCA() (CV_PCA_DATA_AS_ROW); err = %f\n", err ); cvtest 474 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 477 modules/core/test/test_mat.cpp err = cvtest::norm(backPrjTestPoints, rBackPrjTestPoints, CV_RELATIVE_L2); cvtest 480 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of cvBackProjectPCA() (CV_PCA_DATA_AS_ROW); err = %f\n", err ); cvtest 481 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 498 modules/core/test/test_mat.cpp err = cvtest::norm(cv::abs(prjTestPoints), cv::abs(rPrjTestPoints.t()), CV_RELATIVE_L2 ); cvtest 501 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of cvProjectPCA() (CV_PCA_DATA_AS_COL); err = %f\n", err ); cvtest 502 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 505 modules/core/test/test_mat.cpp err = cvtest::norm(backPrjTestPoints, rBackPrjTestPoints.t(), CV_RELATIVE_L2); cvtest 508 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of cvBackProjectPCA() (CV_PCA_DATA_AS_COL); err = %f\n", err ); cvtest 509 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 521 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.eigenvectors, lPCA.eigenvectors, CV_RELATIVE_L2 ); cvtest 524 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of write/load functions (YML); err = %f\n", err ); cvtest 525 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 527 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.eigenvalues, lPCA.eigenvalues, CV_RELATIVE_L2 ); cvtest 530 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of write/load functions (YML); err = %f\n", err ); cvtest 531 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 533 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.mean, lPCA.mean, CV_RELATIVE_L2 ); cvtest 536 modules/core/test/test_mat.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of write/load functions (YML); err = %f\n", err ); cvtest 537 modules/core/test/test_mat.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 542 modules/core/test/test_mat.cpp class Core_ArrayOpTest : public cvtest::BaseTest cvtest 694 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "one of cvSetReal3D, cvSetRealND, cvSet3D, cvSetND " cvtest 717 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "forEach is not correct.\n" cvtest 734 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "forEach is not correct because total is invalid.\n"); cvtest 783 modules/core/test/test_mat.cpp double _norm0 = cvtest::norm(_all_vals, CV_C); cvtest 784 modules/core/test/test_mat.cpp double _norm1 = cvtest::norm(_all_vals, CV_L1); cvtest 785 modules/core/test/test_mat.cpp double _norm2 = cvtest::norm(_all_vals, CV_L2); cvtest 807 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%d. immediately after SparseMat[%s]=%.20g the current value is %.20g\n", cvtest 828 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%d: The number of non-zero elements before/after converting to/from dense matrix is not correct: %d/%d (while it should be %d)\n", cvtest 838 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%d: The norms are different: %.20g/%.20g/%.20g vs %.20g/%.20g/%.20g\n", cvtest 869 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "SparseMat M[%s] = %g/%g/%g (while it should be %g)\n", sidx.c_str(), val1, val2, val3, val0 ); cvtest 895 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "SparseMat: after deleting M[%s], it is =%g/%g (while it should be 0)\n", sidx.c_str(), val1, val2 ); cvtest 904 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "The number of non-zero elements after removing all the elements = %d (while it should be 0)\n", nz ); cvtest 916 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%d. Sparse: The value and positions of minimum/maximum elements are different from the reference values and positions:\n\t" cvtest 928 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%d. Dense: The value and positions of minimum/maximum elements are different from the reference values and positions:\n\t" cvtest 935 modules/core/test/test_mat.cpp ts->set_failed_test_info(errcount == 0 ? cvtest::TS::OK : cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 990 modules/core/test/test_mat.cpp class Core_MergeSplitBaseTest : public cvtest::BaseTest cvtest 1007 modules/core/test/test_mat.cpp int res = cvtest::TS::OK, curRes = res; cvtest 1009 modules/core/test/test_mat.cpp res = curRes != cvtest::TS::OK ? curRes : res; cvtest 1012 modules/core/test/test_mat.cpp res = curRes != cvtest::TS::OK ? curRes : res; cvtest 1015 modules/core/test/test_mat.cpp res = curRes != cvtest::TS::OK ? curRes : res; cvtest 1018 modules/core/test/test_mat.cpp res = curRes != cvtest::TS::OK ? curRes : res; cvtest 1021 modules/core/test/test_mat.cpp res = curRes != cvtest::TS::OK ? curRes : res; cvtest 1024 modules/core/test/test_mat.cpp res = curRes != cvtest::TS::OK ? curRes : res; cvtest 1027 modules/core/test/test_mat.cpp res = curRes != cvtest::TS::OK ? curRes : res; cvtest 1062 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s incorrect depth of dst (%d instead of %d)\n", cvtest 1064 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1068 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s incorrect size of dst (%d x %d instead of %d x %d)\n", cvtest 1070 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1074 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s: incorrect channels count of dst (%d instead of %d)\n", cvtest 1076 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1082 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s: there are incorrect elements in dst (part of them is %f)\n", cvtest 1084 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1087 modules/core/test/test_mat.cpp return cvtest::TS::OK; cvtest 1111 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s incorrect count of matrices in dst (%d instead of %d)\n", cvtest 1113 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1119 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s incorrect size of dst[%d] (%d x %d instead of %d x %d)\n", cvtest 1121 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1125 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s: incorrect depth of dst[%d] (%d instead of %d)\n", cvtest 1127 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1131 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s: incorrect channels count of dst[%d] (%d instead of %d)\n", cvtest 1133 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1140 modules/core/test/test_mat.cpp ts->printf(cvtest::TS::LOG, "%s: there are incorrect elements in dst (part of them is %f)\n", cvtest 1142 modules/core/test/test_mat.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1145 modules/core/test/test_mat.cpp return cvtest::TS::OK; cvtest 1205 modules/core/test/test_mat.cpp ASSERT_PRED_FORMAT2(cvtest::MatComparator(0, 0), ref_dst8, cv::Mat_<uchar>(dst8)); cvtest 1210 modules/core/test/test_mat.cpp ASSERT_PRED_FORMAT2(cvtest::MatComparator(0, 0), ref_dst16, cv::Mat_<ushort>(dst16)); cvtest 20 modules/core/test/test_math.cpp class Core_MathTest : public cvtest::ArrayTest cvtest 23 modules/core/test/test_math.cpp typedef cvtest::ArrayTest Base; cvtest 56 modules/core/test/test_math.cpp int depth = cvtest::randInt(rng)%2 + CV_32F; cvtest 57 modules/core/test/test_math.cpp int cn = cvtest::randInt(rng) % 4 + 1, type = CV_MAKETYPE(depth, cn); cvtest 67 modules/core/test/test_math.cpp test_nd = cvtest::randInt(rng)%3 == 0; cvtest 101 modules/core/test/test_math.cpp int depth = cvtest::randInt(rng) % (CV_64F+1); cvtest 102 modules/core/test/test_math.cpp int cn = cvtest::randInt(rng) % 4 + 1; cvtest 107 modules/core/test/test_math.cpp if( depth < CV_32F || cvtest::randInt(rng)%8 == 0 ) cvtest 109 modules/core/test/test_math.cpp power = (int)(cvtest::randInt(rng)%21 - 10); cvtest 112 modules/core/test/test_math.cpp i = cvtest::randInt(rng)%17; cvtest 113 modules/core/test/test_math.cpp power = i == 16 ? 1./3 : i == 15 ? 0.5 : i == 14 ? -0.5 : cvtest::randReal(rng)*10 - 5; cvtest 123 modules/core/test/test_math.cpp test_nd = cvtest::randInt(rng)%3 == 0; cvtest 139 modules/core/test/test_math.cpp double l, u = cvtest::randInt(ts->get_rng())%1000 + 1; cvtest 142 modules/core/test/test_math.cpp double mval = cvtest::getMaxVal(type); cvtest 356 modules/core/test/test_math.cpp class Core_MatrixTest : public cvtest::ArrayTest cvtest 359 modules/core/test/test_math.cpp typedef cvtest::ArrayTest Base; cvtest 396 modules/core/test/test_math.cpp int depth = cvtest::randInt(rng) % (allow_int ? CV_64F+1 : 2); cvtest 397 modules/core/test/test_math.cpp int cn = cvtest::randInt(rng) % max_cn + 1; cvtest 460 modules/core/test/test_math.cpp Scalar r = cvtest::mean(diag); cvtest 492 modules/core/test/test_math.cpp test_mat[REF_OUTPUT][0].at<Scalar>(0,0) = Scalar(cvtest::crossCorr( test_mat[INPUT][0], test_mat[INPUT][1] )); cvtest 521 modules/core/test/test_math.cpp int depth = cvtest::randInt(rng) % 2 + CV_32F; cvtest 522 modules/core/test/test_math.cpp int cn = cvtest::randInt(rng) & 1 ? 3 : 1, type = CV_MAKETYPE(depth, cn); cvtest 529 modules/core/test/test_math.cpp else if( cvtest::randInt(rng) & 1 ) cvtest 634 modules/core/test/test_math.cpp tabc_flag = cvtest::randInt(rng) & 7; cvtest 662 modules/core/test/test_math.cpp if( cvtest::randInt(rng) & 1 ) cvtest 702 modules/core/test/test_math.cpp cvtest::gemm( test_mat[INPUT][0], test_mat[INPUT][1], alpha, cvtest 734 modules/core/test/test_math.cpp int bits = cvtest::randInt(rng); cvtest 735 modules/core/test/test_math.cpp int src_type = cvtest::randInt(rng) % 5; cvtest 736 modules/core/test/test_math.cpp int dst_type = cvtest::randInt(rng) % 2; cvtest 793 modules/core/test/test_math.cpp cvtest::add( src, 1, delta, -1, Scalar::all(0), temp, temp.type()); cvtest 798 modules/core/test/test_math.cpp cvtest::gemm( temp, temp, 1., Mat(), 0, test_mat[REF_OUTPUT][0], order == 0 ? GEMM_2_T : GEMM_1_T ); cvtest 831 modules/core/test/test_math.cpp int bits = cvtest::randInt(rng); cvtest 837 modules/core/test/test_math.cpp dst_cn = cvtest::randInt(rng) % 4 + 1; cvtest 844 modules/core/test/test_math.cpp scale = 1./((cvtest::randInt(rng)%4)*50+1); cvtest 873 modules/core/test/test_math.cpp cvtest::add(m, scale, m, 0, Scalar::all(0), m, m.type() ); cvtest 903 modules/core/test/test_math.cpp cvtest::transform( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], transmat, shift ); cvtest 929 modules/core/test/test_math.cpp int bits = cvtest::randInt(rng); cvtest 1093 modules/core/test/test_math.cpp if( cvtest::randInt(rng) & 1 ) cvtest 1110 modules/core/test/test_math.cpp cvtest::gemm( test_mat[INPUT][2], test_mat[INPUT][2], 1., Mat(), 0., test_mat[TEMP][2], GEMM_2_T ); cvtest 1111 modules/core/test/test_math.cpp cvtest::copy( test_mat[TEMP][2], test_mat[INPUT][2] ); cvtest 1126 modules/core/test/test_math.cpp cvtest::add( test_mat[INPUT][0], 1., test_mat[INPUT][1], -1., cvtest 1129 modules/core/test/test_math.cpp cvtest::gemm( test_mat[TEMP][0], test_mat[INPUT][2], 1., cvtest 1132 modules/core/test/test_math.cpp cvtest::gemm( test_mat[INPUT][2], test_mat[TEMP][0], 1., cvtest 1135 modules/core/test/test_math.cpp test_mat[REF_OUTPUT][0].at<Scalar>(0,0) = cvRealScalar(sqrt(cvtest::crossCorr(test_mat[TEMP][0], test_mat[TEMP][1]))); cvtest 1171 modules/core/test/test_math.cpp int bits = cvtest::randInt(rng); cvtest 1288 modules/core/test/test_math.cpp cvtest::add(avg, 1, vec, 1, Scalar::all(0), avg, avg.type()); cvtest 1291 modules/core/test/test_math.cpp cvtest::add(avg, 1./count, avg, 0., Scalar::all(0), avg, avg.type()); cvtest 1301 modules/core/test/test_math.cpp cvtest::add( test_mat[INPUT][0], 1, temp0, -1, Scalar::all(0), temp0, temp0.type()); cvtest 1303 modules/core/test/test_math.cpp cvtest::gemm( temp0, temp0, scale, Mat(), 0., test_mat[REF_OUTPUT][0], cvtest 1312 modules/core/test/test_math.cpp int zero_total = cvtest::randInt(rng) % total; cvtest 1317 modules/core/test/test_math.cpp int i = cvtest::randInt(rng) % mat.rows; cvtest 1318 modules/core/test/test_math.cpp int j = cvtest::randInt(rng) % mat.cols; cvtest 1519 modules/core/test/test_math.cpp int bits = cvtest::randInt(rng); cvtest 1562 modules/core/test/test_math.cpp cvtest::gemm( test_mat[INPUT][0], test_mat[INPUT][0], 1., cvtest 1564 modules/core/test/test_math.cpp cvtest::copy( test_mat[TEMP][0], test_mat[INPUT][0] ); cvtest 1623 modules/core/test/test_math.cpp cvtest::convert( input, temp1, temp1.type() ); cvtest 1635 modules/core/test/test_math.cpp cvtest::gemm( temp0, input, 1., Mat(), 0., dst, 0 ); cvtest 1637 modules/core/test/test_math.cpp cvtest::gemm( input, temp0, 1., Mat(), 0., dst, 0 ); cvtest 1674 modules/core/test/test_math.cpp int bits = cvtest::randInt(rng); cvtest 1754 modules/core/test/test_math.cpp cvtest::convert(input, temp1, temp1.type()); cvtest 1775 modules/core/test/test_math.cpp cvtest::gemm( input, test_mat[TEMP][0], 1., test_mat[INPUT][1], -1., *pdst, 0 ); cvtest 1777 modules/core/test/test_math.cpp cvtest::gemm( input, *pdst, 1., Mat(), 0., dst, CV_GEMM_A_T ); cvtest 1817 modules/core/test/test_math.cpp int bits = cvtest::randInt(rng); cvtest 1898 modules/core/test/test_math.cpp cvtest::gemm( input, input, 1., Mat(), 0., temp, CV_GEMM_B_T ); cvtest 1899 modules/core/test/test_math.cpp cvtest::copy( temp, input ); cvtest 1903 modules/core/test/test_math.cpp cvtest::copy( input, test_mat[OUTPUT][0] ); cvtest 1945 modules/core/test/test_math.cpp cvtest::gemm( *src, *src, 1., Mat(), 0., *dst, src->rows == dst->rows ? CV_GEMM_B_T : CV_GEMM_A_T ); cvtest 1953 modules/core/test/test_math.cpp cvtest::gemm( *src, *src, 1., Mat(), 0., *dst, src->rows == dst->rows ? CV_GEMM_B_T : CV_GEMM_A_T ); cvtest 1963 modules/core/test/test_math.cpp normval = cvtest::norm( w->row(i), NORM_L1 ); cvtest 1993 modules/core/test/test_math.cpp cvtest::gemm( test_mat[TEMP][1], *w, 1., Mat(), 0., test_mat[REF_OUTPUT][0], cvtest 1995 modules/core/test/test_math.cpp cvtest::gemm( test_mat[REF_OUTPUT][0], test_mat[TEMP][2], 1., Mat(), 0., cvtest 2000 modules/core/test/test_math.cpp cvtest::gemm( *w, test_mat[TEMP][2], 1., Mat(), 0., test_mat[REF_OUTPUT][0], cvtest 2002 modules/core/test/test_math.cpp cvtest::gemm( test_mat[TEMP][1], test_mat[REF_OUTPUT][0], 1., Mat(), 0., cvtest 2006 modules/core/test/test_math.cpp cvtest::copy( test_mat[INPUT][0], test_mat[REF_OUTPUT][0] ); cvtest 2045 modules/core/test/test_math.cpp int bits = cvtest::randInt(rng); cvtest 2069 modules/core/test/test_math.cpp sizes[INPUT][1].width = cvtest::randInt(rng) % 100 + 1; cvtest 2113 modules/core/test/test_math.cpp cvtest::gemm( input, input, 1., Mat(), 0., temp, CV_GEMM_B_T ); cvtest 2114 modules/core/test/test_math.cpp cvtest::copy( temp, input ); cvtest 2180 modules/core/test/test_math.cpp cvtest::gemm( u, b, 1., Mat(), 0., t0, !(flags & CV_SVD_U_T) ? CV_GEMM_A_T : 0 ); cvtest 2182 modules/core/test/test_math.cpp cvtest::copy( u, t0 ); cvtest 2184 modules/core/test/test_math.cpp cvtest::transpose( u, t0 ); cvtest 2186 modules/core/test/test_math.cpp cvtest::gemm( wdb, t0, 1, Mat(), 0, t1, 0 ); cvtest 2188 modules/core/test/test_math.cpp cvtest::gemm( v, t1, 1, Mat(), 0, t0, flags & CV_SVD_V_T ? CV_GEMM_A_T : 0 ); cvtest 2212 modules/core/test/test_math.cpp class Core_SolvePolyTest : public cvtest::BaseTest cvtest 2235 modules/core/test/test_math.cpp int n = cvtest::randInt(rng) % 13 + 1; cvtest 2242 modules/core/test/test_math.cpp if (cvtest::randInt(rng) % rr_odds == 0 || j == n - 1) cvtest 2243 modules/core/test/test_math.cpp r[j++] = cvtest::randReal(rng) * range; cvtest 2246 modules/core/test/test_math.cpp r[j] = complex_type(cvtest::randReal(rng) * range, cvtest 2247 modules/core/test/test_math.cpp cvtest::randReal(rng) * range + 1); cvtest 2335 modules/core/test/test_math.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 2336 modules/core/test/test_math.cpp ts->printf( cvtest::TS::LOG, "too big diff = %g\n", div ); cvtest 2339 modules/core/test/test_math.cpp ts->printf( cvtest::TS::LOG, "ar2[%d]=%g\n", j, ar2[j]); cvtest 2340 modules/core/test/test_math.cpp ts->printf(cvtest::TS::LOG, "\n"); cvtest 2343 modules/core/test/test_math.cpp ts->printf( cvtest::TS::LOG, "r[%d]=(%g, %g)\n", j, r[j].real(), r[j].imag()); cvtest 2344 modules/core/test/test_math.cpp ts->printf( cvtest::TS::LOG, "\n" ); cvtest 2346 modules/core/test/test_math.cpp ts->printf( cvtest::TS::LOG, "ar[%d]=(%g, %g)\n", j, ar[j].real(), ar[j].imag()); cvtest 2352 modules/core/test/test_math.cpp class Core_PhaseTest : public cvtest::BaseTest cvtest 2419 modules/core/test/test_math.cpp ts->printf(cvtest::TS::LOG, "There are result angles that are out of range [0, 360] (part of them is %f)\n", cvtest 2421 modules/core/test/test_math.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 2428 modules/core/test/test_math.cpp ts->printf(cvtest::TS::LOG, "There are incorrect result angles (in degrees) (part of them is %f)\n", cvtest 2430 modules/core/test/test_math.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 2434 modules/core/test/test_math.cpp double normDiff = cvtest::norm(convertedRes - resInDeg, NORM_INF); cvtest 2437 modules/core/test/test_math.cpp ts->printf(cvtest::TS::LOG, "There are incorrect result angles (in radians)\n"); cvtest 2438 modules/core/test/test_math.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 2441 modules/core/test/test_math.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 2445 modules/core/test/test_math.cpp class Core_CheckRange_Empty : public cvtest::BaseTest cvtest 2462 modules/core/test/test_math.cpp class Core_CheckRange_INT_MAX : public cvtest::BaseTest cvtest 2570 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); cvtest 2572 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); cvtest 2574 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); cvtest 2622 modules/core/test/test_math.cpp EXPECT_LE(cvtest::norm(B1, B, NORM_L2 + NORM_RELATIVE), FLT_EPSILON*10); cvtest 2638 modules/core/test/test_math.cpp class CV_KMeansSingularTest : public cvtest::BaseTest cvtest 2734 modules/core/test/test_math.cpp ts->printf(cvtest::TS::LOG, cvtest 2738 modules/core/test/test_math.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 56 modules/core/test/test_operations.cpp class CV_OperationsTest : public cvtest::BaseTest cvtest 86 modules/core/test/test_operations.cpp if (cvtest::norm(m1, m2, NORM_INF) != 0) throw test_excep(s); cvtest 90 modules/core/test/test_operations.cpp if (cvtest::norm(m1, m2, NORM_INF) > 1e-5) throw test_excep(s); cvtest 430 modules/core/test/test_operations.cpp ts->printf(cvtest::TS::LOG, "%s\n", e.s.c_str()); cvtest 431 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 458 modules/core/test/test_operations.cpp ts->printf(cvtest::TS::LOG, "%s\n", e.s.c_str()); cvtest 459 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 491 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(coords, T_bs.reshape(1,1), NORM_INF) == 0 ); cvtest 495 modules/core/test/test_operations.cpp ts->printf(cvtest::TS::LOG, "%s\n", e.s.c_str()); cvtest 496 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 779 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(mvf2[0], mvf[0], CV_C) == 0 && cvtest 780 modules/core/test/test_operations.cpp cvtest::norm(mvf2[1], mvf[1], CV_C) == 0 ); cvtest 786 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(c, CV_L1) == 4. ); cvtest 815 modules/core/test/test_operations.cpp ts->printf(cvtest::TS::LOG, "%s\n", e.s.c_str()); cvtest 816 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 846 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 889 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 911 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 941 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 1017 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(b, c, CV_C) == 0 ); cvtest 1020 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(b, c, CV_C) == 0 ); cvtest 1023 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(Matx61f(1.f, 1.f, 1.f, 1.f, 1.f, 1.f), c, CV_C) == 0 ); cvtest 1044 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 1069 modules/core/test/test_operations.cpp if( cvtest::norm(A*x, CV_C) > FLT_EPSILON ) cvtest 1073 modules/core/test/test_operations.cpp if( cvtest::norm(A*svd.vt.row(3).t(), CV_C) > FLT_EPSILON ) cvtest 1097 modules/core/test/test_operations.cpp if( cvtest::norm(U*U.t(), I, CV_C) > FLT_EPSILON || cvtest 1098 modules/core/test/test_operations.cpp cvtest::norm(Vt*Vt.t(), I, CV_C) > FLT_EPSILON || cvtest 1101 modules/core/test/test_operations.cpp cvtest::norm(U*Mat::diag(W)*Vt, Q, CV_C) > FLT_EPSILON ) cvtest 1106 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 1150 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 1155 modules/core/test/test_operations.cpp class CV_SparseMatTest : public cvtest::BaseTest cvtest 1170 modules/core/test/test_operations.cpp ts->printf(cvtest::TS::LOG, "."); cvtest 1237 modules/core/test/test_operations.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 6 modules/core/test/test_rand.cpp class Core_RandTest : public cvtest::BaseTest cvtest 106 modules/core/test/test_rand.cpp int depth = cvtest::randInt(rng) % (CV_64F+1); cvtest 107 modules/core/test/test_rand.cpp int c, cn = (cvtest::randInt(rng) % 4) + 1; cvtest 109 modules/core/test/test_rand.cpp int dist_type = cvtest::randInt(rng) % (CV_RAND_NORMAL+1); cvtest 130 modules/core/test/test_rand.cpp a = (int)(cvtest::randInt(rng) % (_ranges[depth][1] - cvtest 134 modules/core/test/test_rand.cpp b = (int)(cvtest::randInt(rng) % (_ranges[depth][1] - cvtest 153 modules/core/test/test_rand.cpp a = cvtest::randInt(rng) % meanrange - meanrange/2 + cvtest 155 modules/core/test/test_rand.cpp b = cvtest::randInt(rng) % (maxdiv - mindiv) + mindiv; cvtest 171 modules/core/test/test_rand.cpp dsz = slice+1 < maxSlice ? (int)(cvtest::randInt(rng) % (SZ - sz + 1)) : SZ - sz; cvtest 177 modules/core/test/test_rand.cpp if( maxk >= 1 && cvtest::norm(arr[0], arr[1], NORM_INF) > eps) cvtest 179 modules/core/test/test_rand.cpp ts->printf( cvtest::TS::LOG, "RNG output depends on the array lengths (some generated numbers get lost?)" ); cvtest 180 modules/core/test/test_rand.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 227 modules/core/test/test_rand.cpp ts->printf( cvtest::TS::LOG, "Uniform RNG gave values out of the range [%g,%g) on channel %d/%d\n", cvtest 229 modules/core/test/test_rand.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 234 modules/core/test/test_rand.cpp ts->printf( cvtest::TS::LOG, "Normal RNG gave too many values out of the range (%g+4*%g,%g+4*%g) on channel %d/%d\n", cvtest 236 modules/core/test/test_rand.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 243 modules/core/test/test_rand.cpp ts->printf( cvtest::TS::LOG, "RNG failed Chi-square test " cvtest 246 modules/core/test/test_rand.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 255 modules/core/test/test_rand.cpp int SDIM = cvtest::randInt(rng) % (MAX_SDIM-1) + 2; cvtest 295 modules/core/test/test_rand.cpp ts->printf( cvtest::TS::LOG, "RNG failed %d-dim sphere volume test (got %g instead of %g)\n", cvtest 297 modules/core/test/test_rand.cpp ts->printf( cvtest::TS::LOG, "depth = %d, N0 = %d\n", depth, N0); cvtest 298 modules/core/test/test_rand.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 308 modules/core/test/test_rand.cpp class Core_RandRangeTest : public cvtest::BaseTest cvtest 47 modules/core/test/test_rotatedrect.cpp class Core_RotatedRectConstructorTest : public cvtest::BaseTest cvtest 68 modules/core/test/test_rotatedrect.cpp cvtest::BaseTest::prepare_test_case( test_case_idx ); cvtest 79 modules/core/test/test_rotatedrect.cpp if( cvtest::randInt(rng) % 2 == 0 ) d = -d; cvtest 101 modules/core/test/test_rotatedrect.cpp return cvtest::TS::OK; cvtest 102 modules/core/test/test_rotatedrect.cpp ts->printf( cvtest::TS::LOG, "RotatedRect end points don't match those supplied in constructor"); cvtest 103 modules/core/test/test_rotatedrect.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 104 modules/core/test/test_rotatedrect.cpp return cvtest::TS::OK; cvtest 45 modules/core/test/test_umat.cpp using namespace cvtest; cvtest 554 modules/core/test/test_umat.cpp public cvtest::BaseTest cvtest 572 modules/core/test/test_umat.cpp if (cvtest::norm(m1, m2, NORM_INF) != 0) cvtest 577 modules/core/test/test_umat.cpp if (cvtest::norm(m1, m2, NORM_INF) > 1e-5) cvtest 682 modules/core/test/test_umat.cpp ts->printf(cvtest::TS::LOG, "%s\n", e.s.c_str()); cvtest 683 modules/core/test/test_umat.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 698 modules/core/test/test_umat.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 730 modules/core/test/test_umat.cpp double err = cvtest::norm(m, ref, NORM_INF); cvtest 751 modules/core/test/test_umat.cpp EXPECT_EQ(0, cvtest::norm(um.getMat(ACCESS_READ), cv::Mat(um.size(), um.type(), 19), NORM_INF)); cvtest 769 modules/core/test/test_umat.cpp EXPECT_EQ(0, cvtest::norm(um.getMat(ACCESS_READ), Mat(um.size(), um.type(), 17), NORM_INF)); cvtest 47 modules/cudaarithm/test/test_arithm.cpp using namespace cvtest; cvtest 47 modules/cudaarithm/test/test_core.cpp using namespace cvtest; cvtest 47 modules/cudaarithm/test/test_element_operations.cpp using namespace cvtest; cvtest 50 modules/cudaarithm/test/test_gpumat.cpp using namespace cvtest; cvtest 51 modules/cudaarithm/test/test_opengl.cpp using namespace cvtest; cvtest 47 modules/cudaarithm/test/test_reductions.cpp using namespace cvtest; cvtest 52 modules/cudaarithm/test/test_stream.cpp using namespace cvtest; cvtest 47 modules/cudabgsegm/test/test_bgsegm.cpp using namespace cvtest; cvtest 86 modules/cudabgsegm/test/test_bgsegm.cpp inputFile = std::string(cvtest::TS::ptr()->get_data_path()) + "video/" + GET_PARAM(1); cvtest 58 modules/cudacodec/test/test_video.cpp const std::string inputFile = std::string(cvtest::TS::ptr()->get_data_path()) + "video/" + GET_PARAM(1); cvtest 80 modules/cudacodec/test/test_video.cpp const std::string inputFile = std::string(cvtest::TS::ptr()->get_data_path()) + "video/" + GET_PARAM(1); cvtest 47 modules/cudafeatures2d/test/test_features2d.cpp using namespace cvtest; cvtest 250 modules/cudafeatures2d/test/test_features2d.cpp cv::RNG& rng = cvtest::TS::ptr()->get_rng(); cvtest 47 modules/cudafilters/test/test_filters.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_bilateral_filter.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_blend.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_canny.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_color.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_corners.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_gftt.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_histogram.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_hough.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_match_template.cpp using namespace cvtest; cvtest 47 modules/cudaimgproc/test/test_mean_shift.cpp using namespace cvtest; cvtest 101 modules/cudaimgproc/test/test_mean_shift.cpp fs.open(std::string(cvtest::TS::ptr()->get_data_path()) + "meanshift/spmap.yaml", cv::FileStorage::READ); cvtest 103 modules/cudaimgproc/test/test_mean_shift.cpp fs.open(std::string(cvtest::TS::ptr()->get_data_path()) + "meanshift/spmap_CC1X.yaml", cv::FileStorage::READ); cvtest 49 modules/cudalegacy/test/test_calib3d.cpp using namespace cvtest; cvtest 166 modules/cudalegacy/test/test_labeling.cpp return cv::imread(std::string( cvtest::TS::ptr()->get_data_path() ) + "labeling/label.png"); cvtest 50 modules/cudalegacy/test/test_main.cpp using namespace cvtest; cvtest 49 modules/cudalegacy/test/test_nvidia.cpp using namespace cvtest; cvtest 47 modules/cudaobjdetect/test/test_objdetect.cpp using namespace cvtest; cvtest 160 modules/cudaobjdetect/test/test_objdetect.cpp f.open((std::string(cvtest::TS::ptr()->get_data_path()) + "hog/expected_output.bin").c_str(), std::ios_base::binary); cvtest 290 modules/cudaobjdetect/test/test_objdetect.cpp std::string classifierXmlPath = std::string(cvtest::TS::ptr()->get_data_path()) + "lbpcascade/lbpcascade_frontalface.xml"; cvtest 318 modules/cudaobjdetect/test/test_objdetect.cpp std::string classifierXmlPath = std::string(cvtest::TS::ptr()->get_data_path()) + "lbpcascade/lbpcascade_frontalface.xml"; cvtest 319 modules/cudaobjdetect/test/test_objdetect.cpp std::string imagePath = std::string(cvtest::TS::ptr()->get_data_path()) + "lbpcascade/er.png"; cvtest 47 modules/cudaoptflow/test/test_optflow.cpp using namespace cvtest; cvtest 87 modules/cudaoptflow/test/test_optflow.cpp std::string fname(cvtest::TS::ptr()->get_data_path()); cvtest 47 modules/cudastereo/test/test_stereo.cpp using namespace cvtest; cvtest 47 modules/cudawarping/test/test_pyramids.cpp using namespace cvtest; cvtest 47 modules/cudawarping/test/test_remap.cpp using namespace cvtest; cvtest 47 modules/cudawarping/test/test_resize.cpp using namespace cvtest; cvtest 47 modules/cudawarping/test/test_warp_affine.cpp using namespace cvtest; cvtest 47 modules/cudawarping/test/test_warp_perspective.cpp using namespace cvtest; cvtest 48 modules/features2d/test/test_agast.cpp class CV_AgastTest : public cvtest::BaseTest cvtest 69 modules/features2d/test/test_agast.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 103 modules/features2d/test/test_agast.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 112 modules/features2d/test/test_agast.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 122 modules/features2d/test/test_agast.cpp if ( exp_kps1.size != kps1.size || 0 != cvtest::norm(exp_kps1, kps1, NORM_L2) || cvtest 123 modules/features2d/test/test_agast.cpp exp_kps2.size != kps2.size || 0 != cvtest::norm(exp_kps2, kps2, NORM_L2)) cvtest 125 modules/features2d/test/test_agast.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 134 modules/features2d/test/test_agast.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 48 modules/features2d/test/test_brisk.cpp class CV_BRISKTest : public cvtest::BaseTest cvtest 67 modules/features2d/test/test_brisk.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 97 modules/features2d/test/test_descriptors_regression.cpp class CV_DescriptorExtractorTest : public cvtest::BaseTest cvtest 117 modules/features2d/test/test_descriptors_regression.cpp ts->printf(cvtest::TS::LOG, "Valid and computed descriptors matrices must have the same size and type.\n"); cvtest 118 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 140 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 142 modules/features2d/test/test_descriptors_regression.cpp ts->printf(cvtest::TS::LOG, ss.str().c_str() ); cvtest 160 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "compute() on empty image and empty keypoints must not generate exception (1).\n"); cvtest 161 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 171 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "compute() on nonempty image and empty keypoints must not generate exception (1).\n"); cvtest 172 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 185 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "compute() on empty images and empty keypoints collection must not generate exception (2).\n"); cvtest 186 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 199 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Image %s can not be read.\n", imgFilename.c_str() ); cvtest 200 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 216 modules/features2d/test/test_descriptors_regression.cpp ts->printf(cvtest::TS::LOG, "\nAverage time of computing one descriptor = %g ms.\n", t/((double)getTickFrequency()*1000.)/calcDescriptors.rows); cvtest 220 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Count of computed descriptors and keypoints count must be equal.\n" ); cvtest 221 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Count of keypoints is %d.\n", (int)keypoints.size() ); cvtest 222 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Count of computed descriptors is %d.\n", calcDescriptors.rows ); cvtest 223 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 229 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Incorrect descriptor size or descriptor type.\n" ); cvtest 230 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Expected size is %d.\n", dextractor->descriptorSize() ); cvtest 231 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Calculated size is %d.\n", calcDescriptors.cols ); cvtest 232 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Expected type is %d.\n", dextractor->descriptorType() ); cvtest 233 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Calculated type is %d.\n", calcDescriptors.type() ); cvtest 234 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 246 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Descriptors can not be written.\n" ); cvtest 247 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 254 modules/features2d/test/test_descriptors_regression.cpp ts->printf( cvtest::TS::LOG, "Compute and write keypoints.\n" ); cvtest 264 modules/features2d/test/test_descriptors_regression.cpp ts->printf(cvtest::TS::LOG, "File for writting keypoints can not be opened.\n"); cvtest 265 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 276 modules/features2d/test/test_descriptors_regression.cpp ts->printf(cvtest::TS::LOG, "Descriptor extractor is empty.\n"); cvtest 277 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 284 modules/features2d/test/test_descriptors_regression.cpp ts->set_failed_test_info( cvtest::TS::OK ); cvtest 353 modules/features2d/test/test_descriptors_regression.cpp string path = string(cvtest::TS::ptr()->get_data_path() + "detectors_descriptors_evaluation/images_datasets/graf"); cvtest 381 modules/features2d/test/test_descriptors_regression.cpp const String& pattern = string(cvtest::TS::ptr()->get_data_path() + "shared/*.png"); cvtest 56 modules/features2d/test/test_detectors_regression.cpp class CV_FeatureDetectorTest : public cvtest::BaseTest cvtest 86 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "detect() on empty image must not generate exception (1).\n" ); cvtest 87 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 92 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "detect() on empty image must return empty keypoints vector (1).\n" ); cvtest 93 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 106 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "detect() on empty image vector must not generate exception (2).\n" ); cvtest 107 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 135 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "Bad keypoints count ratio (validCount = %d, calcCount = %d).\n", cvtest 137 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 163 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "badPointCount = %d; validPointCount = %d; calcPointCount = %d\n", cvtest 167 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, " - Bad accuracy!\n" ); cvtest 168 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 171 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, " - OK\n" ); cvtest 184 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "Image %s can not be read.\n", imgFilename.c_str() ); cvtest 185 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 204 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "Keypoints can not be read.\n" ); cvtest 205 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 216 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "File %s can not be opened to write.\n", resFilename.c_str() ); cvtest 217 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 235 modules/features2d/test/test_detectors_regression.cpp ts->printf( cvtest::TS::LOG, "Feature detector is empty.\n" ); cvtest 236 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 243 modules/features2d/test/test_detectors_regression.cpp ts->set_failed_test_info( cvtest::TS::OK ); cvtest 48 modules/features2d/test/test_fast.cpp class CV_FastTest : public cvtest::BaseTest cvtest 69 modules/features2d/test/test_fast.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 103 modules/features2d/test/test_fast.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 112 modules/features2d/test/test_fast.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 122 modules/features2d/test/test_fast.cpp if ( exp_kps1.size != kps1.size || 0 != cvtest::norm(exp_kps1, kps1, NORM_L2) || cvtest 123 modules/features2d/test/test_fast.cpp exp_kps2.size != kps2.size || 0 != cvtest::norm(exp_kps2, kps2, NORM_L2)) cvtest 125 modules/features2d/test/test_fast.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 134 modules/features2d/test/test_fast.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 56 modules/features2d/test/test_keypoints.cpp class CV_FeatureDetectorKeypointsTest : public cvtest::BaseTest cvtest 72 modules/features2d/test/test_keypoints.cpp ts->printf(cvtest::TS::LOG, "Image %s can not be read.\n", imgFilename.c_str()); cvtest 73 modules/features2d/test/test_keypoints.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 82 modules/features2d/test/test_keypoints.cpp ts->printf(cvtest::TS::LOG, "Detector can't find keypoints in image.\n"); cvtest 83 modules/features2d/test/test_keypoints.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 94 modules/features2d/test/test_keypoints.cpp ts->printf(cvtest::TS::LOG, "KeyPoint::pt is out of image (x=%f, y=%f).\n", kp.pt.x, kp.pt.y); cvtest 95 modules/features2d/test/test_keypoints.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 101 modules/features2d/test/test_keypoints.cpp ts->printf(cvtest::TS::LOG, "KeyPoint::size is not positive (%f).\n", kp.size); cvtest 102 modules/features2d/test/test_keypoints.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 108 modules/features2d/test/test_keypoints.cpp ts->printf(cvtest::TS::LOG, "KeyPoint::angle is out of range [0, 360). It's %f.\n", kp.angle); cvtest 109 modules/features2d/test/test_keypoints.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 113 modules/features2d/test/test_keypoints.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 54 modules/features2d/test/test_matchers_algorithmic.cpp class CV_DescriptorMatcherTest : public cvtest::BaseTest cvtest 95 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "match() on empty descriptors must not generate exception (1).\n" ); cvtest 96 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 105 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "knnMatch() on empty descriptors must not generate exception (1).\n" ); cvtest 106 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 115 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "radiusMatch() on empty descriptors must not generate exception (1).\n" ); cvtest 116 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 125 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "add() on empty descriptors must not generate exception.\n" ); cvtest 126 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 135 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "match() on empty descriptors must not generate exception (2).\n" ); cvtest 136 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 145 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "knnMatch() on empty descriptors must not generate exception (2).\n" ); cvtest 146 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 155 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "radiusMatch() on empty descriptors must not generate exception (2).\n" ); cvtest 156 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 204 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf(cvtest::TS::LOG, "Incorrect matches count while test match() function (1).\n"); cvtest 205 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 218 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "%f - too large bad matches part while test match() function (1).\n", cvtest 220 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 232 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf(cvtest::TS::LOG, "Incorrect matches count while test match() function for the same query and test descriptors (1).\n"); cvtest 233 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 244 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "Bad match (i=%d, queryIdx=%d, trainIdx=%d, distance=%f) while test match() function for the same query and test descriptors (1).\n", cvtest 246 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 271 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf(cvtest::TS::LOG, "Incorrect matches count while test match() function (2).\n"); cvtest 272 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 296 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "%f - too large bad matches part while test match() function (2).\n", cvtest 298 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 317 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf(cvtest::TS::LOG, "Incorrect matches count while test knnMatch() function (1).\n"); cvtest 318 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 341 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "%f - too large bad matches part while test knnMatch() function (1).\n", cvtest 343 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 368 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf(cvtest::TS::LOG, "Incorrect matches count while test knnMatch() function (2).\n"); cvtest 369 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 405 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "%f - too large bad matches part while test knnMatch() function (2).\n", cvtest 407 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 424 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf(cvtest::TS::LOG, "Incorrect matches count while test radiusMatch() function (1).\n"); cvtest 425 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 443 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "%f - too large bad matches part while test radiusMatch() function (1).\n", cvtest 445 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 472 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf(cvtest::TS::LOG, "Incorrect matches count while test radiusMatch() function (1).\n"); cvtest 473 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 510 modules/features2d/test/test_matchers_algorithmic.cpp ts->printf( cvtest::TS::LOG, "%f - too large bad matches part while test radiusMatch() function (2).\n", cvtest 512 modules/features2d/test/test_matchers_algorithmic.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 93 modules/features2d/test/test_mser.cpp Mat big_image = imread(cvtest::TS::ptr()->get_data_path() + "mser/puzzle.png", 0); cvtest 55 modules/features2d/test/test_nearestneighbors.cpp class NearestNeighborTest : public cvtest::BaseTest cvtest 78 modules/features2d/test/test_nearestneighbors.cpp return cvtest::TS::OK; cvtest 83 modules/features2d/test/test_nearestneighbors.cpp return cvtest::TS::OK; cvtest 88 modules/features2d/test/test_nearestneighbors.cpp int code = cvtest::TS::OK; cvtest 107 modules/features2d/test/test_nearestneighbors.cpp if( code == cvtest::TS::OK ) cvtest 119 modules/features2d/test/test_nearestneighbors.cpp ts->printf( cvtest::TS::LOG, "correct_perc = %d\n", correctPerc ); cvtest 120 modules/features2d/test/test_nearestneighbors.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 128 modules/features2d/test/test_nearestneighbors.cpp int code = cvtest::TS::OK, tempCode; cvtest 135 modules/features2d/test/test_nearestneighbors.cpp if( tempCode != cvtest::TS::OK ) cvtest 137 modules/features2d/test/test_nearestneighbors.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of GetPoints \n" ); cvtest 142 modules/features2d/test/test_nearestneighbors.cpp if( tempCode != cvtest::TS::OK ) cvtest 144 modules/features2d/test/test_nearestneighbors.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of FindBoxed \n" ); cvtest 149 modules/features2d/test/test_nearestneighbors.cpp if( tempCode != cvtest::TS::OK ) cvtest 151 modules/features2d/test/test_nearestneighbors.cpp ts->printf( cvtest::TS::LOG, "bad accuracy of Find \n" ); cvtest 201 modules/features2d/test/test_nearestneighbors.cpp if( cvtest::norm( neighbors, neighbors1, NORM_L1 ) != 0 ) cvtest 202 modules/features2d/test/test_nearestneighbors.cpp return cvtest::TS::FAIL_BAD_ACCURACY; cvtest 204 modules/features2d/test/test_nearestneighbors.cpp return cvtest::TS::OK; cvtest 233 modules/features2d/test/test_nearestneighbors.cpp if( cvtest::norm( neighbors, neighbors1, NORM_L1 ) != 0 ) cvtest 234 modules/features2d/test/test_nearestneighbors.cpp return cvtest::TS::FAIL_BAD_ACCURACY; cvtest 236 modules/features2d/test/test_nearestneighbors.cpp return cvtest::TS::OK; cvtest 305 modules/features2d/test/test_nearestneighbors.cpp switch ( cvtest::randInt(ts->get_rng()) % 2 ) cvtest 53 modules/features2d/test/test_orb.cpp Mat image = imread(string(cvtest::TS::ptr()->get_data_path()) + "shared/lena.png"); cvtest 189 modules/features2d/test/test_rotation_and_scale_invariance.cpp class DetectorRotationInvarianceTest : public cvtest::BaseTest cvtest 212 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Image %s can not be read.\n", imageFilename.c_str()); cvtest 213 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 268 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Incorrect keyPointMatchesRatio: curr = %f, min = %f.\n", cvtest 270 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 279 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Incorrect angleInliersRatio: curr = %f, min = %f.\n", cvtest 281 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 290 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info( cvtest::TS::OK ); cvtest 298 modules/features2d/test/test_rotation_and_scale_invariance.cpp class DescriptorRotationInvarianceTest : public cvtest::BaseTest cvtest 324 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Image %s can not be read.\n", imageFilename.c_str()); cvtest 325 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 367 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Incorrect descInliersRatio: curr = %f, min = %f.\n", cvtest 369 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 376 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info( cvtest::TS::OK ); cvtest 385 modules/features2d/test/test_rotation_and_scale_invariance.cpp class DetectorScaleInvarianceTest : public cvtest::BaseTest cvtest 408 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Image %s can not be read.\n", imageFilename.c_str()); cvtest 409 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 431 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Strange behavior of the detector. " cvtest 437 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 471 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Incorrect keyPointMatchesRatio: curr = %f, min = %f.\n", cvtest 473 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 482 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Incorrect scaleInliersRatio: curr = %f, min = %f.\n", cvtest 484 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 493 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info( cvtest::TS::OK ); cvtest 501 modules/features2d/test/test_rotation_and_scale_invariance.cpp class DescriptorScaleInvarianceTest : public cvtest::BaseTest cvtest 527 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Image %s can not be read.\n", imageFilename.c_str()); cvtest 528 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 571 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->printf(cvtest::TS::LOG, "Incorrect descInliersRatio: curr = %f, min = %f.\n", cvtest 573 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 580 modules/features2d/test/test_rotation_and_scale_invariance.cpp ts->set_failed_test_info( cvtest::TS::OK ); cvtest 46 modules/flann/test/test_lshtable_badarg.cpp class CV_LshTableBadArgTest : public cvtest::BadArgTest cvtest 70 modules/flann/test/test_lshtable_badarg.cpp Size featuresSize = cvtest::randomSize(rng, 10.0); cvtest 71 modules/flann/test/test_lshtable_badarg.cpp caller.features = cvtest::randomMat(rng, featuresSize, CV_8UC1, 0, 255, false); cvtest 82 modules/flann/test/test_lshtable_badarg.cpp caller.key_size += cvtest::randInt(rng) % 100; cvtest 86 modules/flann/test/test_lshtable_badarg.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 88 modules/flann/test/test_lshtable_badarg.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 51 modules/highgui/test/test_gui.cpp class CV_HighGuiOnlyGuiTest : public cvtest::BaseTest cvtest 88 modules/highgui/test/test_gui.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 50 modules/imgcodecs/test/test_drawing.cpp class CV_DrawingTest : public cvtest::BaseTest cvtest 79 modules/imgcodecs/test/test_drawing.cpp float err = (float)cvtest::norm( testImg, valImg, NORM_L1 ); cvtest 84 modules/imgcodecs/test/test_drawing.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 91 modules/imgcodecs/test/test_drawing.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 232 modules/imgcodecs/test/test_drawing.cpp float err = (float)cvtest::norm( v, NORM_L2 ); cvtest 236 modules/imgcodecs/test/test_drawing.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 239 modules/imgcodecs/test/test_drawing.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 401 modules/imgcodecs/test/test_drawing.cpp float err = (float)cvtest::norm( v, NORM_L2 ); cvtest 405 modules/imgcodecs/test/test_drawing.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 409 modules/imgcodecs/test/test_drawing.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 418 modules/imgcodecs/test/test_drawing.cpp class CV_FillConvexPolyTest : public cvtest::BaseTest cvtest 452 modules/imgcodecs/test/test_drawing.cpp class CV_DrawingTest_UTF8 : public cvtest::BaseTest cvtest 103 modules/imgcodecs/test/test_grfmt.cpp const string folder = string(cvtest::TS::ptr()->get_data_path()) + "/readwrite/"; cvtest 124 modules/imgcodecs/test/test_grfmt.cpp const string folder = string(cvtest::TS::ptr()->get_data_path()) + "/readwrite/"; cvtest 133 modules/imgcodecs/test/test_grfmt.cpp class CV_GrfmtWriteBigImageTest : public cvtest::BaseTest cvtest 140 modules/imgcodecs/test/test_grfmt.cpp ts->printf(cvtest::TS::LOG, "start reading big image\n"); cvtest 142 modules/imgcodecs/test/test_grfmt.cpp ts->printf(cvtest::TS::LOG, "finish reading big image\n"); cvtest 143 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 144 modules/imgcodecs/test/test_grfmt.cpp ts->printf(cvtest::TS::LOG, "start writing big image\n"); cvtest 146 modules/imgcodecs/test/test_grfmt.cpp ts->printf(cvtest::TS::LOG, "finish writing big image\n"); cvtest 150 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); cvtest 152 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 169 modules/imgcodecs/test/test_grfmt.cpp class CV_GrfmtWriteSequenceImageTest : public cvtest::BaseTest cvtest 207 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L2); cvtest 236 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L1); cvtest 270 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L2); cvtest 288 modules/imgcodecs/test/test_grfmt.cpp class CV_GrfmtReadBMPRLE8Test : public cvtest::BaseTest cvtest 297 modules/imgcodecs/test/test_grfmt.cpp if (cvtest::norm(rle-bmp, NORM_L2)>1.e-10) cvtest 298 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 302 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); cvtest 304 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 318 modules/imgcodecs/test/test_grfmt.cpp class CV_GrfmtPNGEncodeTest : public cvtest::BaseTest cvtest 338 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); cvtest 340 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 348 modules/imgcodecs/test/test_grfmt.cpp cvtest::TS& ts = *cvtest::TS::ptr(); cvtest 373 modules/imgcodecs/test/test_grfmt.cpp class CV_GrfmtReadPNGColorPaletteWithAlphaTest : public cvtest::BaseTest cvtest 382 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 402 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 420 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 438 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 456 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); cvtest 458 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 476 modules/imgcodecs/test/test_grfmt.cpp cvtest::TS& ts = *cvtest::TS::ptr(); cvtest 493 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(0, cvtest::norm(img_jpg_progressive, img_jpg_normal, NORM_INF)); cvtest 500 modules/imgcodecs/test/test_grfmt.cpp cvtest::TS& ts = *cvtest::TS::ptr(); cvtest 517 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(0, cvtest::norm(img_jpg_optimized, img_jpg_normal, NORM_INF)); cvtest 524 modules/imgcodecs/test/test_grfmt.cpp cvtest::TS& ts = *cvtest::TS::ptr(); cvtest 541 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(0, cvtest::norm(img_jpg_rst, img_jpg_normal, NORM_INF)); cvtest 637 modules/imgcodecs/test/test_grfmt.cpp class CV_GrfmtReadTifTiledWithNotFullTiles: public cvtest::BaseTest cvtest 652 modules/imgcodecs/test/test_grfmt.cpp if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 655 modules/imgcodecs/test/test_grfmt.cpp if (tiled8.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 656 modules/imgcodecs/test/test_grfmt.cpp ASSERT_PRED_FORMAT2(cvtest::MatComparator(0, 0), img, tiled8); cvtest 659 modules/imgcodecs/test/test_grfmt.cpp if (tiled16.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 662 modules/imgcodecs/test/test_grfmt.cpp ASSERT_PRED_FORMAT2(cvtest::MatComparator(2, 0), img, tiled8); cvtest 667 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); cvtest 669 modules/imgcodecs/test/test_grfmt.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 708 modules/imgcodecs/test/test_grfmt.cpp class CV_GrfmtReadTifMultiPage : public cvtest::BaseTest cvtest 713 modules/imgcodecs/test/test_grfmt.cpp const string folder = string(cvtest::TS::ptr()->get_data_path()) + "/readwrite/"; cvtest 754 modules/imgcodecs/test/test_grfmt.cpp cvtest::TS& ts = *cvtest::TS::ptr(); cvtest 794 modules/imgcodecs/test/test_grfmt.cpp EXPECT_TRUE(cvtest::norm(decode, img_webp, NORM_INF) == 0); cvtest 798 modules/imgcodecs/test/test_grfmt.cpp EXPECT_TRUE(cvtest::norm(img, img_webp, NORM_INF) == 0); cvtest 803 modules/imgcodecs/test/test_grfmt.cpp cvtest::TS& ts = *cvtest::TS::ptr(); cvtest 827 modules/imgcodecs/test/test_grfmt.cpp cvtest::TS& ts = *cvtest::TS::ptr(); cvtest 853 modules/imgcodecs/test/test_grfmt.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "/readwrite/"; cvtest 25 modules/imgproc/perf/perf_resize.cpp cvtest::fillGradient(src); cvtest 52 modules/imgproc/perf/perf_resize.cpp cvtest::fillGradient(src); cvtest 39 modules/imgproc/perf/perf_warp.cpp cvtest::fillGradient(src); cvtest 40 modules/imgproc/perf/perf_warp.cpp if(borderMode == BORDER_CONSTANT) cvtest::smoothBorder(src, borderColor, 1); cvtest 69 modules/imgproc/perf/perf_warp.cpp cvtest::fillGradient(src); cvtest 70 modules/imgproc/perf/perf_warp.cpp if(borderMode == BORDER_CONSTANT) cvtest::smoothBorder(src, borderColor, 1); cvtest 109 modules/imgproc/perf/perf_warp.cpp cvtest::fillGradient(src); cvtest 110 modules/imgproc/perf/perf_warp.cpp if(borderMode == BORDER_CONSTANT) cvtest::smoothBorder(src, borderColor, 1); cvtest 60 modules/imgproc/test/test_approxpoly.cpp class CV_ApproxPolyTest : public cvtest::BaseTest cvtest 96 modules/imgproc/test/test_approxpoly.cpp cvtest::BaseTest::clear(); cvtest 130 modules/imgproc/test/test_approxpoly.cpp int total = cvtest::randInt(rng) % 1000 + 1; cvtest 136 modules/imgproc/test/test_approxpoly.cpp center.x = cvtest::randInt( rng ) % 1000; cvtest 137 modules/imgproc/test/test_approxpoly.cpp center.y = cvtest::randInt( rng ) % 1000; cvtest 138 modules/imgproc/test/test_approxpoly.cpp radius = cvtest::randInt( rng ) % 1000; cvtest 139 modules/imgproc/test/test_approxpoly.cpp angle = cvtest::randInt( rng ) % 360; cvtest 145 modules/imgproc/test/test_approxpoly.cpp int d_radius = cvtest::randInt( rng ) % 10 - 5; cvtest 285 modules/imgproc/test/test_approxpoly.cpp int code = cvtest::TS::OK; cvtest 329 modules/imgproc/test/test_approxpoly.cpp ts->printf( cvtest::TS::LOG, cvtest 331 modules/imgproc/test/test_approxpoly.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 338 modules/imgproc/test/test_approxpoly.cpp ts->printf( cvtest::TS::LOG, cvtest 340 modules/imgproc/test/test_approxpoly.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 50 modules/imgproc/test/test_bilateral_filter.cpp public cvtest::BaseTest cvtest 82 modules/imgproc/test/test_bilateral_filter.cpp cvtest::BaseTest(), _src(), _parallel_dst(), _d() cvtest 267 modules/imgproc/test/test_bilateral_filter.cpp double e = cvtest::norm(reference_dst, _parallel_dst, NORM_L2); cvtest 270 modules/imgproc/test/test_bilateral_filter.cpp ts->printf(cvtest::TS::CONSOLE, "actual error: %g, expected: %g", e, eps); cvtest 271 modules/imgproc/test/test_bilateral_filter.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 274 modules/imgproc/test/test_bilateral_filter.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 53 modules/imgproc/test/test_boundingrect.cpp class CV_BoundingRectTest: public cvtest::ArrayTest cvtest 47 modules/imgproc/test/test_canny.cpp class CV_CannyTest : public cvtest::ArrayTest cvtest 88 modules/imgproc/test/test_canny.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 91 modules/imgproc/test/test_canny.cpp aperture_size = cvtest::randInt(rng) % 2 ? 5 : 3; cvtest 94 modules/imgproc/test/test_canny.cpp threshold1 = cvtest::randReal(rng)*thresh_range; cvtest 95 modules/imgproc/test/test_canny.cpp threshold2 = cvtest::randReal(rng)*thresh_range*0.3; cvtest 97 modules/imgproc/test/test_canny.cpp if( cvtest::randInt(rng) % 2 ) cvtest 100 modules/imgproc/test/test_canny.cpp use_true_gradient = cvtest::randInt(rng) % 2 != 0; cvtest 101 modules/imgproc/test/test_canny.cpp test_cpp = (cvtest::randInt(rng) & 256) == 0; cvtest 107 modules/imgproc/test/test_canny.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 173 modules/imgproc/test/test_canny.cpp Mat dxkernel = cvtest::calcSobelKernel2D( 1, 0, m, 0 ); cvtest 174 modules/imgproc/test/test_canny.cpp Mat dykernel = cvtest::calcSobelKernel2D( 0, 1, m, 0 ); cvtest 176 modules/imgproc/test/test_canny.cpp cvtest::filter2D(src, dx, CV_16S, dxkernel, anchor, 0, BORDER_REPLICATE); cvtest 177 modules/imgproc/test/test_canny.cpp cvtest::filter2D(src, dy, CV_16S, dykernel, anchor, 0, BORDER_REPLICATE); cvtest 260 modules/imgproc/test/test_canny.cpp int code = cvtest::TS::OK, nz0; cvtest 263 modules/imgproc/test/test_canny.cpp double err = cvtest::norm(test_mat[OUTPUT][0], test_mat[REF_OUTPUT][0], CV_L1); cvtest 269 modules/imgproc/test/test_canny.cpp ts->printf( cvtest::TS::LOG, "Some of the pixels, produced by Canny, are not 0's or 255's; the difference is %g\n", err ); cvtest 270 modules/imgproc/test/test_canny.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 274 modules/imgproc/test/test_canny.cpp nz0 = cvRound(cvtest::norm(test_mat[REF_OUTPUT][0], CV_L1)/255); cvtest 278 modules/imgproc/test/test_canny.cpp ts->printf( cvtest::TS::LOG, "Too high percentage of non-matching edge pixels = %g%%\n", err); cvtest 279 modules/imgproc/test/test_canny.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 49 modules/imgproc/test/test_color.cpp class CV_ColorCvtBaseTest : public cvtest::ArrayTest cvtest 109 modules/imgproc/test/test_color.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 124 modules/imgproc/test/test_color.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 128 modules/imgproc/test/test_color.cpp depth = cvtest::randInt(rng) % 3; cvtest 133 modules/imgproc/test/test_color.cpp depth = cvtest::randInt(rng) % 2; cvtest 139 modules/imgproc/test/test_color.cpp cn = (cvtest::randInt(rng) & 1) + 3; cvtest 140 modules/imgproc/test/test_color.cpp blue_idx = cvtest::randInt(rng) & 1 ? 2 : 0; cvtest 147 modules/imgproc/test/test_color.cpp inplace = cn == 3 && cvtest::randInt(rng) % 2 != 0; cvtest 148 modules/imgproc/test/test_color.cpp test_cpp = (cvtest::randInt(rng) & 256) == 0; cvtest 154 modules/imgproc/test/test_color.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 156 modules/imgproc/test/test_color.cpp cvtest::copy( test_mat[INPUT][0], test_mat[OUTPUT][0] ); cvtest 1294 modules/imgproc/test/test_color.cpp if( cvtest::randInt(rng) % 3 == 0 ) cvtest 1298 modules/imgproc/test/test_color.cpp if( cvtest::randInt(rng) & 1 ) cvtest 1566 modules/imgproc/test/test_color.cpp fwd_code = cvtest::randInt(rng)%4 + CV_BayerBG2BGR; cvtest 1690 modules/imgproc/test/test_color.cpp cvtest::TS* ts = cvtest::TS::ptr(); cvtest 1712 modules/imgproc/test/test_color.cpp cvtest::TS* ts = cvtest::TS::ptr(); cvtest 1802 modules/imgproc/test/test_color.cpp cvtest::TS* ts = cvtest::TS::ptr(); cvtest 1813 modules/imgproc/test/test_color.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISSING_TEST_DATA); cvtest 1814 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "No input image\n"); cvtest 1840 modules/imgproc/test/test_color.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 1841 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "\nReference channels: %d\n" cvtest 1843 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "\nReference depth: %d\n" cvtest 1845 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "\nReference rows: %d\n" cvtest 1847 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "\nReference cols: %d\n" cvtest 1860 modules/imgproc/test/test_color.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 1861 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "\nCount non zero in absdiff: %d\n", nonZero); cvtest 1895 modules/imgproc/test/test_color.cpp cvtest::TS* ts = cvtest::TS::ptr(); cvtest 1910 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Error in: (%d, %d)\n", x / cn, y); cvtest 1911 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Reference value: %f\n", rD[x]); cvtest 1912 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Actual value: %f\n", D[x]); cvtest 1914 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Src value: %f\n", src.ptr<float>(y)[x]); cvtest 1915 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Size: (%d, %d)\n", reference.rows, reference.cols); cvtest 1925 modules/imgproc/test/test_color.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 1938 modules/imgproc/test/test_color.cpp RNG& rng = cvtest::TS::ptr()->get_rng(); cvtest 2048 modules/imgproc/test/test_color.cpp static void checkData(const Mat& actual, const Mat& reference, cvtest::TS* ts, const char* type, cvtest 2067 modules/imgproc/test/test_color.cpp #define SUM cvtest::TS::SUMMARY cvtest 2080 modules/imgproc/test/test_color.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 2090 modules/imgproc/test/test_color.cpp cvtest::TS* ts = cvtest::TS::ptr(); cvtest 2100 modules/imgproc/test/test_color.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISSING_TEST_DATA); cvtest 2101 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "No input image\n"); cvtest 2145 modules/imgproc/test/test_color.cpp cvtest::TS* ts = cvtest::TS::ptr(); cvtest 2177 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Error in: (%d, %d)\n", x / cn, y); cvtest 2178 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Reference value: %d\n", rD[x]); cvtest 2179 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Actual value: %d\n", D[x]); cvtest 2180 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Src value: %d\n", raw.ptr<uchar>(y)[x]); cvtest 2181 modules/imgproc/test/test_color.cpp ts->printf(cvtest::TS::SUMMARY, "Size: (%d, %d)\n", reference.rows, reference.cols); cvtest 2187 modules/imgproc/test/test_color.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 49 modules/imgproc/test/test_connectedcomponents.cpp class CV_ConnectedComponentsTest : public cvtest::BaseTest cvtest 69 modules/imgproc/test/test_connectedcomponents.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 82 modules/imgproc/test/test_connectedcomponents.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); cvtest 94 modules/imgproc/test/test_connectedcomponents.cpp if (0 != cvtest::norm(labelImage > 0, exp > 0, NORM_INF)) cvtest 96 modules/imgproc/test/test_connectedcomponents.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISMATCH ); cvtest 99 modules/imgproc/test/test_connectedcomponents.cpp if (nLabels != cvtest::norm(labelImage, NORM_INF)+1) cvtest 101 modules/imgproc/test/test_connectedcomponents.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISMATCH ); cvtest 104 modules/imgproc/test/test_connectedcomponents.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 48 modules/imgproc/test/test_contours.cpp class CV_FindContourTest : public cvtest::BaseTest cvtest 106 modules/imgproc/test/test_contours.cpp cvtest::BaseTest::clear(); cvtest 118 modules/imgproc/test/test_contours.cpp int code = cvtest::BaseTest::read_params( fs ); cvtest 129 modules/imgproc/test/test_contours.cpp min_blob_size = cvtest::clipInt( min_blob_size, 1, 100 ); cvtest 130 modules/imgproc/test/test_contours.cpp max_blob_size = cvtest::clipInt( max_blob_size, 1, 100 ); cvtest 135 modules/imgproc/test/test_contours.cpp max_log_blob_count = cvtest::clipInt( max_log_blob_count, 1, 10 ); cvtest 137 modules/imgproc/test/test_contours.cpp min_log_img_size = cvtest::clipInt( min_log_img_size, 1, 10 ); cvtest 138 modules/imgproc/test/test_contours.cpp max_log_img_size = cvtest::clipInt( max_log_img_size, 1, 10 ); cvtest 167 modules/imgproc/test/test_contours.cpp int angle = cvtest::randInt(rng) % 180; cvtest 168 modules/imgproc/test/test_contours.cpp int brightness = cvtest::randInt(rng) % cvtest 170 modules/imgproc/test/test_contours.cpp center.x = cvtest::randInt(rng) % size.width; cvtest 171 modules/imgproc/test/test_contours.cpp center.y = cvtest::randInt(rng) % size.height; cvtest 173 modules/imgproc/test/test_contours.cpp axes.width = (cvtest::randInt(rng) % cvtest 175 modules/imgproc/test/test_contours.cpp axes.height = (cvtest::randInt(rng) % cvtest 209 modules/imgproc/test/test_contours.cpp int i, code = cvtest::BaseTest::prepare_test_case( test_case_idx ); cvtest 216 modules/imgproc/test/test_contours.cpp blob_count = cvRound(exp(cvtest::randReal(rng)*max_log_blob_count*CV_LOG2)); cvtest 218 modules/imgproc/test/test_contours.cpp img_size.width = cvRound(exp((cvtest::randReal(rng)* cvtest 220 modules/imgproc/test/test_contours.cpp img_size.height = cvRound(exp((cvtest::randReal(rng)* cvtest 223 modules/imgproc/test/test_contours.cpp approx_method = cvtest::randInt( rng ) % 4 + 1; cvtest 224 modules/imgproc/test/test_contours.cpp retr_mode = cvtest::randInt( rng ) % 4; cvtest 270 modules/imgproc/test/test_contours.cpp int code = cvtest::TS::OK; cvtest 276 modules/imgproc/test/test_contours.cpp ts->printf( cvtest::TS::LOG, "The number of contours retrieved with different " cvtest 280 modules/imgproc/test/test_contours.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 289 modules/imgproc/test/test_contours.cpp code = cvtest::cmpEps2(ts, _img[0], _img[3], 0, true, "Comparing original image with the map of filled contours" ); cvtest 294 modules/imgproc/test/test_contours.cpp code = cvtest::cmpEps2( ts, _img[1], _img[2], 0, true, cvtest 317 modules/imgproc/test/test_contours.cpp ts->printf( cvtest::TS::LOG, cvtest 321 modules/imgproc/test/test_contours.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 338 modules/imgproc/test/test_contours.cpp ts->printf( cvtest::TS::LOG, cvtest 341 modules/imgproc/test/test_contours.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 350 modules/imgproc/test/test_contours.cpp ts->printf( cvtest::TS::LOG, cvtest 353 modules/imgproc/test/test_contours.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 367 modules/imgproc/test/test_contours.cpp ts->printf( cvtest::TS::LOG, cvtest 370 modules/imgproc/test/test_contours.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 185 modules/imgproc/test/test_convhull.cpp class CV_BaseShapeDescrTest : public cvtest::BaseTest cvtest 243 modules/imgproc/test/test_convhull.cpp cvtest::BaseTest::clear(); cvtest 253 modules/imgproc/test/test_convhull.cpp int code = cvtest::BaseTest::read_params( fs ); cvtest 261 modules/imgproc/test/test_convhull.cpp min_log_size = cvtest::clipInt( min_log_size, 0, 8 ); cvtest 262 modules/imgproc/test/test_convhull.cpp max_log_size = cvtest::clipInt( max_log_size, 0, 10 ); cvtest 326 modules/imgproc/test/test_convhull.cpp pi[k] = cvRound(cvtest::randReal(rng)*a[k] + b[k]); cvtest 329 modules/imgproc/test/test_convhull.cpp pf[k] = (float)(cvtest::randReal(rng)*a[k] + b[k]); cvtest 342 modules/imgproc/test/test_convhull.cpp cvtest::BaseTest::prepare_test_case( test_case_idx ); cvtest 345 modules/imgproc/test/test_convhull.cpp size = cvRound( exp((cvtest::randReal(rng) * (max_log_size - min_log_size) + min_log_size)*CV_LOG2) ); cvtest 346 modules/imgproc/test/test_convhull.cpp use_storage = cvtest::randInt(rng) % 2; cvtest 347 modules/imgproc/test/test_convhull.cpp point_type = CV_MAKETYPE(cvtest::randInt(rng) % cvtest 352 modules/imgproc/test/test_convhull.cpp storage = cvCreateMemStorage( (cvtest::randInt(rng)%10 + 1)*1024 ); cvtest 360 modules/imgproc/test/test_convhull.cpp if( cvtest::randInt(rng) % 2 ) cvtest 369 modules/imgproc/test/test_convhull.cpp low.val[i] = (cvtest::randReal(rng)-0.5)*low_high_range*2; cvtest 370 modules/imgproc/test/test_convhull.cpp high.val[i] = (cvtest::randReal(rng)-0.5)*low_high_range*2; cvtest 382 modules/imgproc/test/test_convhull.cpp test_cpp = (cvtest::randInt(rng) & 16) == 0; cvtest 473 modules/imgproc/test/test_convhull.cpp orientation = cvtest::randInt(rng) % 2 ? CV_CLOCKWISE : CV_COUNTER_CLOCKWISE; cvtest 474 modules/imgproc/test/test_convhull.cpp return_points = cvtest::randInt(rng) % 2; cvtest 476 modules/imgproc/test/test_convhull.cpp use_storage_for_hull = (cvtest::randInt(rng) % 2) && !test_cpp; cvtest 480 modules/imgproc/test/test_convhull.cpp storage = cvCreateMemStorage( (cvtest::randInt(rng)%10 + 1)*1024 ); cvtest 489 modules/imgproc/test/test_convhull.cpp if( cvtest::randInt(rng) % 2 ) cvtest 601 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "Invalid convex hull point #%d\n", i ); cvtest 602 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 622 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The convex hull is not convex or has a wrong orientation (vtx %d)\n", i ); cvtest 623 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 639 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The point #%d is outside of the convex hull\n", i ); cvtest 640 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 648 modules/imgproc/test/test_convhull.cpp if( cvtest::norm( _mask, Mat::zeros(_mask.dims, _mask.size, _mask.type()), NORM_L1 ) != hull_count ) cvtest 650 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "Not every convex hull vertex coincides with some input point\n" ); cvtest 651 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 726 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The bounding box is not a rectangle\n" ); cvtest 727 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 759 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The point #%d is outside of the box\n", i ); cvtest 760 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 777 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "Not every box side has a point nearby\n" ); cvtest 778 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 904 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 906 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 910 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 912 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 916 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 918 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 996 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The point #%d is outside of the circle\n", i ); cvtest 997 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1007 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 1009 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1054 modules/imgproc/test/test_convhull.cpp is_closed = cvtest::randInt(rng) % 2; cvtest 1066 modules/imgproc/test/test_convhull.cpp if( (cvtest::randInt(rng) % 3) && !test_cpp ) cvtest 1068 modules/imgproc/test/test_convhull.cpp slice.start_index = cvtest::randInt(rng) % total; cvtest 1069 modules/imgproc/test/test_convhull.cpp slice.end_index = cvtest::randInt(rng) % total; cvtest 1114 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "cvArcLength() returned invalid value (%g)\n", result ); cvtest 1115 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1119 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The function returned %g, while the correct result is %g\n", result, result0 ); cvtest 1120 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1169 modules/imgproc/test/test_convhull.cpp box0.angle = (float)(cvtest::randReal(rng)*180); cvtest 1202 modules/imgproc/test/test_convhull.cpp double angle = cvtest::randReal(rng)*CV_PI*2; cvtest 1203 modules/imgproc/test/test_convhull.cpp double x = box0.size.height*0.5*(cos(angle) + (cvtest::randReal(rng)-0.5)*2*max_noise); cvtest 1204 modules/imgproc/test/test_convhull.cpp double y = box0.size.width*0.5*(sin(angle) + (cvtest::randReal(rng)-0.5)*2*max_noise); cvtest 1253 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "Some of the computed ellipse parameters are invalid (x=%g,y=%g,w=%g,h=%g,angle=%g)\n", cvtest 1255 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1270 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "The computed ellipse center and/or size are incorrect:\n\t" cvtest 1274 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1284 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "Incorrect ellipse angle (=%1.f, should be %1.f)\n", cvtest 1286 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1326 modules/imgproc/test/test_convhull.cpp class CV_FitEllipseSmallTest : public cvtest::BaseTest cvtest 1380 modules/imgproc/test/test_convhull.cpp const int angle = ( (cvtest::randInt(rng) % 5) - 2 ) * 90; cvtest 1460 modules/imgproc/test/test_convhull.cpp if( cvtest::randInt(rng) % 2 ) cvtest 1504 modules/imgproc/test/test_convhull.cpp t = (float)((cvtest::randReal(rng)-0.5)*low_high_range*2); cvtest 1508 modules/imgproc/test/test_convhull.cpp p[k] = (float)((cvtest::randReal(rng)-0.5)*max_noise*2 + t*line0[k] + line0[k+n]); cvtest 1525 modules/imgproc/test/test_convhull.cpp dims = cvtest::randInt(rng) % 2 + 2; cvtest 1529 modules/imgproc/test/test_convhull.cpp dist_type = cvtest::randInt(rng) % 6 + 1; cvtest 1561 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, "Some of the computed line parameters are invalid (line[%d]=%g)\n", cvtest 1563 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1588 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 1592 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 1595 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1609 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 1613 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 1616 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1672 modules/imgproc/test/test_convhull.cpp double t = cvtest::randReal(rng)*max_r_scale + (1 - max_r_scale); cvtest 1734 modules/imgproc/test/test_convhull.cpp axes.width = (float)((cvtest::randReal(rng)*0.9 + 0.1)*low_high_range); cvtest 1735 modules/imgproc/test/test_convhull.cpp axes.height = (float)((cvtest::randReal(rng)*0.9 + 0.1)*low_high_range); cvtest 1740 modules/imgproc/test/test_convhull.cpp center.x = (float)(img_size.width*0.5 + (cvtest::randReal(rng)-0.5)*(img_size.width - max_sz*2)*0.8); cvtest 1741 modules/imgproc/test/test_convhull.cpp center.y = (float)(img_size.height*0.5 + (cvtest::randReal(rng)-0.5)*(img_size.height - max_sz*2)*0.8); cvtest 1746 modules/imgproc/test/test_convhull.cpp max_r_scale = cvtest::randReal(rng)*max_max_r_scale*0.01; cvtest 1747 modules/imgproc/test/test_convhull.cpp angle = cvtest::randReal(rng)*360; cvtest 1807 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 1809 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1815 modules/imgproc/test/test_convhull.cpp ts->printf( cvtest::TS::LOG, cvtest 1818 modules/imgproc/test/test_convhull.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1841 modules/imgproc/test/test_convhull.cpp class CV_PerimeterAreaSliceTest : public cvtest::BaseTest cvtest 1910 modules/imgproc/test/test_convhull.cpp ts->printf(cvtest::TS::LOG, cvtest 1912 modules/imgproc/test/test_convhull.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 1916 modules/imgproc/test/test_convhull.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 47 modules/imgproc/test/test_distancetransform.cpp class CV_DisTransTest : public cvtest::ArrayTest cvtest 84 modules/imgproc/test/test_distancetransform.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 90 modules/imgproc/test/test_distancetransform.cpp if( cvtest::randInt(rng) & 1 ) cvtest 99 modules/imgproc/test/test_distancetransform.cpp dist_type = cvtest::randInt(rng) % 3; cvtest 119 modules/imgproc/test/test_distancetransform.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 129 modules/imgproc/test/test_distancetransform.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 136 modules/imgproc/test/test_distancetransform.cpp int i = cvtest::randInt(rng) % mat.rows; cvtest 137 modules/imgproc/test/test_distancetransform.cpp int j = cvtest::randInt(rng) % mat.cols; cvtest 49 modules/imgproc/test/test_emd.cpp class CV_EMDTest : public cvtest::BaseTest cvtest 64 modules/imgproc/test/test_emd.cpp int code = cvtest::TS::OK; cvtest 84 modules/imgproc/test/test_emd.cpp ts->printf( cvtest::TS::LOG, cvtest 86 modules/imgproc/test/test_emd.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 47 modules/imgproc/test/test_filter.cpp class CV_FilterBaseTest : public cvtest::ArrayTest cvtest 82 modules/imgproc/test/test_filter.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 87 modules/imgproc/test/test_filter.cpp max_aperture_size = cvtest::clipInt( max_aperture_size, 1, 100 ); cvtest 95 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 103 modules/imgproc/test/test_filter.cpp double val = exp( cvtest::randReal(rng)*10 - 4 ); cvtest 132 modules/imgproc/test/test_filter.cpp int depth = cvtest::randInt(rng) % CV_32F; cvtest 133 modules/imgproc/test/test_filter.cpp int cn = cvtest::randInt(rng) % 3 + 1; cvtest 134 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 140 modules/imgproc/test/test_filter.cpp aperture_size.width = cvtest::randInt(rng) % max_aperture_size + 1; cvtest 141 modules/imgproc/test/test_filter.cpp aperture_size.height = cvtest::randInt(rng) % max_aperture_size + 1; cvtest 142 modules/imgproc/test/test_filter.cpp anchor.x = cvtest::randInt(rng) % aperture_size.width; cvtest 143 modules/imgproc/test/test_filter.cpp anchor.y = cvtest::randInt(rng) % aperture_size.height; cvtest 148 modules/imgproc/test/test_filter.cpp inplace = cvtest::randInt(rng) % 2 != 0; cvtest 155 modules/imgproc/test/test_filter.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 159 modules/imgproc/test/test_filter.cpp cvtest::copy( test_mat[INPUT][0], test_mat[OUTPUT][0] ); cvtest 198 modules/imgproc/test/test_filter.cpp int depth = cvtest::randInt(rng) % 4; cvtest 203 modules/imgproc/test/test_filter.cpp shape = cvtest::randInt(rng) % 4; cvtest 208 modules/imgproc/test/test_filter.cpp optype = cvtest::randInt(rng) % (optype_max - optype_min + 1) + optype_min; cvtest 266 modules/imgproc/test/test_filter.cpp cvtest::erode( src, dst, _element, _anchor, _border ); cvtest 270 modules/imgproc/test/test_filter.cpp cvtest::dilate( src, dst, _element, _anchor, _border ); cvtest 277 modules/imgproc/test/test_filter.cpp cvtest::erode( src, temp, _element, _anchor, _border ); cvtest 278 modules/imgproc/test/test_filter.cpp cvtest::dilate( temp, dst, _element, _anchor, _border ); cvtest 282 modules/imgproc/test/test_filter.cpp cvtest::dilate( src, temp, _element, _anchor, _border ); cvtest 283 modules/imgproc/test/test_filter.cpp cvtest::erode( temp, dst, _element, _anchor, _border ); cvtest 287 modules/imgproc/test/test_filter.cpp cvtest::erode( src, temp, _element, _anchor, _border ); cvtest 288 modules/imgproc/test/test_filter.cpp cvtest::dilate( src, dst, _element, _anchor, _border ); cvtest 289 modules/imgproc/test/test_filter.cpp cvtest::add( dst, 1, temp, -1, Scalar::all(0), dst, dst.type() ); cvtest 293 modules/imgproc/test/test_filter.cpp cvtest::erode( src, temp, _element, _anchor, _border ); cvtest 294 modules/imgproc/test/test_filter.cpp cvtest::dilate( temp, dst, _element, _anchor, _border ); cvtest 295 modules/imgproc/test/test_filter.cpp cvtest::add( src, 1, dst, -1, Scalar::all(0), dst, dst.type() ); cvtest 299 modules/imgproc/test/test_filter.cpp cvtest::dilate( src, temp, _element, _anchor, _border ); cvtest 300 modules/imgproc/test/test_filter.cpp cvtest::erode( temp, dst, _element, _anchor, _border ); cvtest 301 modules/imgproc/test/test_filter.cpp cvtest::add( dst, 1, src, -1, Scalar::all(0), dst, dst.type() ); cvtest 407 modules/imgproc/test/test_filter.cpp int depth = cvtest::randInt(rng)%3; cvtest 432 modules/imgproc/test/test_filter.cpp cvtest::filter2D( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], test_mat[REF_OUTPUT][0].type(), cvtest 461 modules/imgproc/test/test_filter.cpp int depth = cvtest::randInt(rng) % 2; cvtest 465 modules/imgproc/test/test_filter.cpp _aperture_size = (cvtest::randInt(rng)%5)*2 - 1; cvtest 503 modules/imgproc/test/test_filter.cpp origin = cvtest::randInt(rng) % 2; cvtest 504 modules/imgproc/test/test_filter.cpp dx = cvtest::randInt(rng) % (max_d + 1); cvtest 505 modules/imgproc/test/test_filter.cpp dy = cvtest::randInt(rng) % (max_d + 1 - dx); cvtest 508 modules/imgproc/test/test_filter.cpp if( cvtest::randInt(rng) % 2 ) cvtest 549 modules/imgproc/test/test_filter.cpp Mat kernel = cvtest::calcSobelKernel2D( dx, dy, _aperture_size, 0 ); cvtest 550 modules/imgproc/test/test_filter.cpp cvtest::filter2D( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], test_mat[REF_OUTPUT][0].depth(), cvtest 610 modules/imgproc/test/test_filter.cpp Mat kernel = cvtest::calcLaplaceKernel2D( _aperture_size ); cvtest 611 modules/imgproc/test/test_filter.cpp cvtest::filter2D( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], test_mat[REF_OUTPUT][0].depth(), cvtest 641 modules/imgproc/test/test_filter.cpp int depth = cvtest::randInt(rng) % 2; cvtest 645 modules/imgproc/test/test_filter.cpp anchor.x = cvtest::randInt(rng)%(max_aperture_size/2+1); cvtest 646 modules/imgproc/test/test_filter.cpp anchor.y = cvtest::randInt(rng)%(max_aperture_size/2+1); cvtest 686 modules/imgproc/test/test_filter.cpp int depth = cvtest::randInt(rng) % 4; cvtest 687 modules/imgproc/test/test_filter.cpp int cn = (cvtest::randInt(rng) % 4) + 1; cvtest 690 modules/imgproc/test/test_filter.cpp normalize = cvtest::randInt(rng) % 2 != 0; cvtest 718 modules/imgproc/test/test_filter.cpp cvtest::filter2D( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], test_mat[REF_OUTPUT][0].depth(), cvtest 758 modules/imgproc/test/test_filter.cpp int kernel_case = cvtest::randInt(rng) % 2; cvtest 762 modules/imgproc/test/test_filter.cpp sigma = exp(cvtest::randReal(rng)*5-2); cvtest 837 modules/imgproc/test/test_filter.cpp cvtest::filter2D( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], test_mat[REF_OUTPUT][0].depth(), cvtest 1011 modules/imgproc/test/test_filter.cpp cvtest::extract( src0, dst, i ); cvtest 1014 modules/imgproc/test/test_filter.cpp cvtest::copyMakeBorder( ptr, src, m/2, m/2, m/2, m/2, border & ~BORDER_ISOLATED ); cvtest 1017 modules/imgproc/test/test_filter.cpp cvtest::insert( dst, dst0, i ); cvtest 1064 modules/imgproc/test/test_filter.cpp int depth = depthes[cvtest::randInt(rng) % (sizeof(depthes)/sizeof(depthes[0]))]; cvtest 1065 modules/imgproc/test/test_filter.cpp int cn = channels[cvtest::randInt(rng) % (sizeof(channels)/sizeof(channels[0]))]; cvtest 1123 modules/imgproc/test/test_filter.cpp cvtest::filter2D(src, temp, src.depth(), cvtest 1193 modules/imgproc/test/test_filter.cpp cvtest::filter2D(temp, dst, dst.depth(), cvtest 1201 modules/imgproc/test/test_filter.cpp class CV_FeatureSelBaseTest : public cvtest::ArrayTest cvtest 1233 modules/imgproc/test/test_filter.cpp int code = cvtest::BaseTest::read_params( fs ); cvtest 1238 modules/imgproc/test/test_filter.cpp max_aperture_size = cvtest::clipInt( max_aperture_size, 1, 9 ); cvtest 1240 modules/imgproc/test/test_filter.cpp max_block_size = cvtest::clipInt( max_aperture_size, 1, 100 ); cvtest 1255 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 1268 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 1269 modules/imgproc/test/test_filter.cpp int depth = cvtest::randInt(rng) % 2, asz; cvtest 1275 modules/imgproc/test/test_filter.cpp aperture_size = (cvtest::randInt(rng) % (max_aperture_size+2) - 1) | 1; cvtest 1280 modules/imgproc/test/test_filter.cpp block_size = (cvtest::randInt(rng) % max_block_size + 1) | 1; cvtest 1312 modules/imgproc/test/test_filter.cpp kernel = cvtest::calcSobelKernel2D( 1, 0, _aperture_size ); cvtest 1313 modules/imgproc/test/test_filter.cpp cvtest::filter2D( src, dx2, ftype, kernel*kernel_scale, anchor, 0, BORDER_REPLICATE ); cvtest 1314 modules/imgproc/test/test_filter.cpp kernel = cvtest::calcSobelKernel2D( 0, 1, _aperture_size ); cvtest 1315 modules/imgproc/test/test_filter.cpp cvtest::filter2D( src, dy2, ftype, kernel*kernel_scale, anchor, 0, BORDER_REPLICATE ); cvtest 1341 modules/imgproc/test/test_filter.cpp cvtest::filter2D( dx2, dx2, ftype, kernel, anchor, 0, BORDER_REPLICATE ); cvtest 1342 modules/imgproc/test/test_filter.cpp cvtest::filter2D( dy2, dy2, ftype, kernel, anchor, 0, BORDER_REPLICATE ); cvtest 1343 modules/imgproc/test/test_filter.cpp cvtest::filter2D( dxdy, dxdy, ftype, kernel, anchor, 0, BORDER_REPLICATE ); cvtest 1525 modules/imgproc/test/test_filter.cpp kernel = cvtest::calcSobelKernel2D(1, 0, aperture_size); cvtest 1526 modules/imgproc/test/test_filter.cpp cvtest::filter2D(src, dx, ftype, kernel*kernel_scale, anchor, 0, BORDER_REPLICATE); cvtest 1527 modules/imgproc/test/test_filter.cpp kernel = cvtest::calcSobelKernel2D(2, 0, aperture_size); cvtest 1528 modules/imgproc/test/test_filter.cpp cvtest::filter2D(src, d2x, ftype, kernel*kernel_scale, anchor, 0, BORDER_REPLICATE); cvtest 1529 modules/imgproc/test/test_filter.cpp kernel = cvtest::calcSobelKernel2D(0, 1, aperture_size); cvtest 1530 modules/imgproc/test/test_filter.cpp cvtest::filter2D(src, dy, ftype, kernel*kernel_scale, anchor, 0, BORDER_REPLICATE); cvtest 1531 modules/imgproc/test/test_filter.cpp kernel = cvtest::calcSobelKernel2D(0, 2, aperture_size); cvtest 1532 modules/imgproc/test/test_filter.cpp cvtest::filter2D(src, d2y, ftype, kernel*kernel_scale, anchor, 0, BORDER_REPLICATE); cvtest 1533 modules/imgproc/test/test_filter.cpp kernel = cvtest::calcSobelKernel2D(1, 1, aperture_size); cvtest 1534 modules/imgproc/test/test_filter.cpp cvtest::filter2D(src, dxy, ftype, kernel*kernel_scale, anchor, 0, BORDER_REPLICATE); cvtest 1562 modules/imgproc/test/test_filter.cpp class CV_IntegralTest : public cvtest::ArrayTest cvtest 1593 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 1607 modules/imgproc/test/test_filter.cpp int depth = cvtest::randInt(rng) % 2, sum_depth; cvtest 1608 modules/imgproc/test/test_filter.cpp int cn = cvtest::randInt(rng) % 3 + 1; cvtest 1609 modules/imgproc/test/test_filter.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 1614 modules/imgproc/test/test_filter.cpp int b = (cvtest::randInt(rng) & 1) != 0; cvtest 1629 modules/imgproc/test/test_filter.cpp if( cvtest::randInt(rng) % 3 > 0 ) cvtest 1632 modules/imgproc/test/test_filter.cpp if( cvtest::randInt(rng) % 2 > 0 ) cvtest 1647 modules/imgproc/test/test_filter.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 1747 modules/imgproc/test/test_filter.cpp cvtest::extract(src, plane, i); cvtest 1759 modules/imgproc/test/test_filter.cpp cvtest::insert(psum2, *sum0, i); cvtest 1761 modules/imgproc/test/test_filter.cpp cvtest::insert(psqsum2, *sqsum0, i); cvtest 1763 modules/imgproc/test/test_filter.cpp cvtest::insert(ptsum2, *tsum0, i); cvtest 1789 modules/imgproc/test/test_filter.cpp class CV_FilterSupportedFormatsTest : public cvtest::BaseTest cvtest 1870 modules/imgproc/test/test_filter.cpp ts->printf(cvtest::TS::LOG, "Combination of depths %d => %d in %s is not supported (yet it should be)", cvtest 1883 modules/imgproc/test/test_filter.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 1919 modules/imgproc/test/test_filter.cpp EXPECT_DOUBLE_EQ(0.0, cvtest::norm(expected_dst, dst, NORM_INF)); cvtest 47 modules/imgproc/test/test_floodfill.cpp class CV_FloodFillTest : public cvtest::ArrayTest cvtest 98 modules/imgproc/test/test_floodfill.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 100 modules/imgproc/test/test_floodfill.cpp depth = cvtest::randInt(rng) % 3; cvtest 102 modules/imgproc/test/test_floodfill.cpp cn = cvtest::randInt(rng) & 1 ? 3 : 1; cvtest 104 modules/imgproc/test/test_floodfill.cpp use_mask = (cvtest::randInt(rng) & 1) != 0; cvtest 105 modules/imgproc/test/test_floodfill.cpp connectivity = (cvtest::randInt(rng) & 1) ? 4 : 8; cvtest 106 modules/imgproc/test/test_floodfill.cpp mask_only = use_mask && (cvtest::randInt(rng) & 1) != 0; cvtest 107 modules/imgproc/test/test_floodfill.cpp new_mask_val = cvtest::randInt(rng) & 255; cvtest 108 modules/imgproc/test/test_floodfill.cpp range_type = cvtest::randInt(rng) % 3; cvtest 123 modules/imgproc/test/test_floodfill.cpp seed_pt.x = cvtest::randInt(rng) % sizes[INPUT_OUTPUT][0].width; cvtest 124 modules/imgproc/test/test_floodfill.cpp seed_pt.y = cvtest::randInt(rng) % sizes[INPUT_OUTPUT][0].height; cvtest 141 modules/imgproc/test/test_floodfill.cpp new_val.val[i] = cvtest::randReal(rng)*255; cvtest 143 modules/imgproc/test/test_floodfill.cpp test_cpp = (cvtest::randInt(rng) & 256) == 0; cvtest 159 modules/imgproc/test/test_floodfill.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); cvtest 177 modules/imgproc/test/test_floodfill.cpp cvtest::convert(tmp, arr, arr.type()); cvtest 183 modules/imgproc/test/test_floodfill.cpp cvtest::randUni(rng, arr, l, u ); cvtest 262 modules/imgproc/test/test_floodfill.cpp cvtest::convert(cvarrToMat(_img), cvarrToMat(tmp), -1); cvtest 268 modules/imgproc/test/test_floodfill.cpp cvtest::convert(cvarrToMat(_mask), cvarrToMat(mask), -1); cvtest 272 modules/imgproc/test/test_floodfill.cpp cvtest::set( m_mask, Scalar::all(0), Mat() ); cvtest 485 modules/imgproc/test/test_floodfill.cpp cvtest::convert(cvarrToMat(tmp), cvarrToMat(_img), -1); cvtest 51 modules/imgproc/test/test_grabcut.cpp class CV_GrabcutTest : public cvtest::BaseTest cvtest 71 modules/imgproc/test/test_grabcut.cpp ts->printf( cvtest::TS::LOG, "nonIntersectArea/expArea = %f\n", curRatio ); cvtest 77 modules/imgproc/test/test_grabcut.cpp cvtest::DefaultRngAuto defRng; cvtest 88 modules/imgproc/test/test_grabcut.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISSING_TEST_DATA); cvtest 115 modules/imgproc/test/test_grabcut.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 134 modules/imgproc/test/test_grabcut.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 137 modules/imgproc/test/test_grabcut.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 144 modules/imgproc/test/test_grabcut.cpp cvtest::TS& ts = *cvtest::TS::ptr(); cvtest 47 modules/imgproc/test/test_histograms.cpp class CV_BaseHistTest : public cvtest::BaseTest cvtest 113 modules/imgproc/test/test_histograms.cpp cvtest::BaseTest::clear(); cvtest 121 modules/imgproc/test/test_histograms.cpp int code = cvtest::BaseTest::read_params( fs ); cvtest 127 modules/imgproc/test/test_histograms.cpp max_log_size = cvtest::clipInt( max_log_size, 1, 20 ); cvtest 129 modules/imgproc/test/test_histograms.cpp img_max_log_size = cvtest::clipInt( img_max_log_size, 1, 9 ); cvtest 132 modules/imgproc/test/test_histograms.cpp max_cdims = cvtest::clipInt( max_cdims, 1, 6 ); cvtest 144 modules/imgproc/test/test_histograms.cpp cdims = cvtest::randInt(rng) % max_cdims + 1; cvtest 145 modules/imgproc/test/test_histograms.cpp hist_size = exp(cvtest::randReal(rng)*max_log_size*CV_LOG2); cvtest 148 modules/imgproc/test/test_histograms.cpp uniform = cvtest::randInt(rng) % 2; cvtest 149 modules/imgproc/test/test_histograms.cpp hist_type = cvtest::randInt(rng) % 2 ? CV_HIST_SPARSE : CV_HIST_ARRAY; cvtest 153 modules/imgproc/test/test_histograms.cpp dims[i] = cvtest::randInt(rng) % (max_dim_size + 2) + 2; cvtest 159 modules/imgproc/test/test_histograms.cpp img_type = cvtest::randInt(rng) % 2 ? CV_32F : CV_8U; cvtest 160 modules/imgproc/test/test_histograms.cpp img_size.width = cvRound( exp(cvtest::randReal(rng) * img_max_log_size * CV_LOG2) ); cvtest 161 modules/imgproc/test/test_histograms.cpp img_size.height = cvRound( exp(cvtest::randReal(rng) * img_max_log_size * CV_LOG2) ); cvtest 165 modules/imgproc/test/test_histograms.cpp low = cvtest::getMinVal(img_type); cvtest 166 modules/imgproc/test/test_histograms.cpp high = cvtest::getMaxVal(img_type); cvtest 174 modules/imgproc/test/test_histograms.cpp range_delta = (cvtest::randInt(rng) % 2)*(high-low)*0.05; cvtest 253 modules/imgproc/test/test_histograms.cpp cvtest::randUni(rng, h, Scalar::all(0), Scalar::all(gen_hist_max_val) ); cvtest 263 modules/imgproc/test/test_histograms.cpp nz_count = cvtest::randInt(rng) % MAX( totalSize/4, 100 ); cvtest 270 modules/imgproc/test/test_histograms.cpp idx[j] = cvtest::randInt(rng) % dims[j]; cvtest 271 modules/imgproc/test/test_histograms.cpp cvSetRealND(arr, idx, cvtest::randReal(rng)*gen_hist_max_val); cvtest 285 modules/imgproc/test/test_histograms.cpp cvtest::BaseTest::prepare_test_case( test_case_idx ); cvtest 295 modules/imgproc/test/test_histograms.cpp test_cpp = (cvtest::randInt(ts->get_rng()) % 2) != 0; cvtest 377 modules/imgproc/test/test_histograms.cpp iters = (cvtest::randInt(rng) % MAX(total_size/10,100)) + 1; cvtest 399 modules/imgproc/test/test_histograms.cpp int t = cvtest::randInt(rng) % dims[j]; cvtest 404 modules/imgproc/test/test_histograms.cpp if( cvtest::randInt(rng) % 8 || GET_BIT(lin_idx) ) cvtest 540 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 549 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The bin #%d has invalid value\n", i ); cvtest 550 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 554 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The bin #%d = %g, while it should be %g\n", i, v, v0 ); cvtest 555 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 560 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The bin index = (" ); cvtest 562 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "%d%s", indices->data.i[i*cdims + j], cvtest 610 modules/imgproc/test/test_histograms.cpp min_idx0[i] = cvtest::randInt(rng) % dims[i]; cvtest 611 modules/imgproc/test/test_histograms.cpp max_idx0[i] = cvtest::randInt(rng) % dims[i]; cvtest 618 modules/imgproc/test/test_histograms.cpp min_val0 = (float)(-cvtest::randReal(rng)*10 - FLT_EPSILON); cvtest 619 modules/imgproc/test/test_histograms.cpp max_val0 = (float)(cvtest::randReal(rng)*10 + FLT_EPSILON + gen_hist_max_val); cvtest 647 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 652 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, cvtest 654 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 659 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, cvtest 662 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 671 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, cvtest 675 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 717 modules/imgproc/test/test_histograms.cpp factor = cvtest::randReal(rng)*10 + 0.1; cvtest 744 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 770 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, cvtest 772 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 776 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, cvtest 778 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 839 modules/imgproc/test/test_histograms.cpp threshold = cvtest::randReal(rng)*gen_hist_max_val; cvtest 889 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 917 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The %d-th bin is invalid (=%g)\n", i, v ); cvtest 918 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 923 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The %d-th bin is incorrect (=%g, should be =%g)\n", i, v, v0 ); cvtest 924 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 934 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, cvtest 936 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 997 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 1098 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The comparison result using the method #%d (%s) is invalid (=%g)\n", cvtest 1100 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1105 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The comparison result using the method #%d (%s)\n\tis inaccurate (=%g, should be =%g)\n", cvtest 1107 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1186 modules/imgproc/test/test_histograms.cpp channels[i] = cvtest::randInt(rng) % nch; cvtest 1189 modules/imgproc/test/test_histograms.cpp cvtest::randUni( rng, images_i, Scalar::all(low), Scalar::all(high) ); cvtest 1191 modules/imgproc/test/test_histograms.cpp else if( i == CV_MAX_DIM && cvtest::randInt(rng) % 2 ) cvtest 1198 modules/imgproc/test/test_histograms.cpp cvtest::randUni( rng, images_i, Scalar::all(-2), Scalar::all(2) ); cvtest 1308 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 1314 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, "The histogram does not match to the reference one\n" ); cvtest 1315 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 1397 modules/imgproc/test/test_histograms.cpp channels[i] = cvtest::randInt(rng) % nch; cvtest 1400 modules/imgproc/test/test_histograms.cpp cvtest::randUni( rng, images_i, Scalar::all(low), Scalar::all(high) ); cvtest 1402 modules/imgproc/test/test_histograms.cpp else if( i == CV_MAX_DIM && cvtest::randInt(rng) % 2 ) cvtest 1408 modules/imgproc/test/test_histograms.cpp cvtest::randUni( rng, images_i, Scalar::all(-2), Scalar::all(2) ); cvtest 1419 modules/imgproc/test/test_histograms.cpp n = cvtest::randInt(rng) % (img_len/20+1); cvtest 1425 modules/imgproc/test/test_histograms.cpp int idx = cvtest::randInt(rng) % img_len; cvtest 1426 modules/imgproc/test/test_histograms.cpp double val = cvtest::randReal(rng)*(high - low) + low; cvtest 1534 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 1539 modules/imgproc/test/test_histograms.cpp code = cvtest::cmpEps2( ts, a, b, threshold, true, "Back project image" ); cvtest 1614 modules/imgproc/test/test_histograms.cpp patch_size.width = cvtest::randInt(rng) % img_size.width + 1; cvtest 1615 modules/imgproc/test/test_histograms.cpp patch_size.height = cvtest::randInt(rng) % img_size.height + 1; cvtest 1620 modules/imgproc/test/test_histograms.cpp method = cvtest::randInt(rng) % CV_CompareHistTest::MAX_METHOD; cvtest 1629 modules/imgproc/test/test_histograms.cpp channels[i] = cvtest::randInt(rng) % nch; cvtest 1632 modules/imgproc/test/test_histograms.cpp cvtest::randUni( rng, images_i, Scalar::all(low), Scalar::all(high) ); cvtest 1647 modules/imgproc/test/test_histograms.cpp n = cvtest::randInt(rng) % (img_len/10+1); cvtest 1653 modules/imgproc/test/test_histograms.cpp int idx = cvtest::randInt(rng) % img_len; cvtest 1654 modules/imgproc/test/test_histograms.cpp double val = cvtest::randReal(rng)*(high - low) + low; cvtest 1726 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 1733 modules/imgproc/test/test_histograms.cpp code = cvtest::cmpEps2( ts, a, b, err_level, true, "BackProjectPatch result" ); cvtest 1785 modules/imgproc/test/test_histograms.cpp hist_count = (cvtest::randInt(rng) % (MAX_HIST/2-1) + 2)*2; cvtest 1801 modules/imgproc/test/test_histograms.cpp int code = cvtest::TS::OK; cvtest 1824 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, cvtest 1827 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 1832 modules/imgproc/test/test_histograms.cpp ts->printf( cvtest::TS::LOG, cvtest 1835 modules/imgproc/test/test_histograms.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 145 modules/imgproc/test/test_houghLines.cpp string filename = cvtest::TS::ptr()->get_data_path() + picture_name; cvtest 151 modules/imgproc/test/test_houghLines.cpp xml = string(cvtest::TS::ptr()->get_data_path()) + "imgproc/HoughLines.xml"; cvtest 153 modules/imgproc/test/test_houghLines.cpp xml = string(cvtest::TS::ptr()->get_data_path()) + "imgproc/HoughLinesP.xml"; cvtest 49 modules/imgproc/test/test_imgproc_umat.cpp class CV_ImgprocUMatTest : public cvtest::BaseTest cvtest 78 modules/imgproc/test/test_imgproc_umat.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 47 modules/imgproc/test/test_imgwarp.cpp class CV_ImgWarpBaseTest : public cvtest::ArrayTest cvtest 82 modules/imgproc/test/test_imgwarp.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 89 modules/imgproc/test/test_imgwarp.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 102 modules/imgproc/test/test_imgwarp.cpp int depth = cvtest::randInt(rng) % 3; cvtest 103 modules/imgproc/test/test_imgwarp.cpp int cn = cvtest::randInt(rng) % 3 + 1; cvtest 104 modules/imgproc/test/test_imgwarp.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 110 modules/imgproc/test/test_imgwarp.cpp types[INPUT][1] = cvtest::randInt(rng) & 1 ? CV_32FC1 : CV_64FC1; cvtest 112 modules/imgproc/test/test_imgwarp.cpp interpolation = cvtest::randInt(rng) % max_interpolation; cvtest 119 modules/imgproc/test/test_imgwarp.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); cvtest 124 modules/imgproc/test/test_imgwarp.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 228 modules/imgproc/test/test_imgwarp.cpp sz.width = (cvtest::randInt(rng) % sizes[INPUT][0].width) + 1; cvtest 229 modules/imgproc/test/test_imgwarp.cpp sz.height = (cvtest::randInt(rng) % sizes[INPUT][0].height) + 1; cvtest 231 modules/imgproc/test/test_imgwarp.cpp if( cvtest::randInt(rng) & 1 ) cvtest 233 modules/imgproc/test/test_imgwarp.cpp int xfactor = cvtest::randInt(rng) % 10 + 1; cvtest 234 modules/imgproc/test/test_imgwarp.cpp int yfactor = cvtest::randInt(rng) % 10 + 1; cvtest 236 modules/imgproc/test/test_imgwarp.cpp if( cvtest::randInt(rng) & 1 ) cvtest 247 modules/imgproc/test/test_imgwarp.cpp if( cvtest::randInt(rng) & 1 ) cvtest 522 modules/imgproc/test/test_imgwarp.cpp center.x = (float)((cvtest::randReal(rng)*1.2 - 0.1)*src.cols); cvtest 523 modules/imgproc/test/test_imgwarp.cpp center.y = (float)((cvtest::randReal(rng)*1.2 - 0.1)*src.rows); cvtest 524 modules/imgproc/test/test_imgwarp.cpp angle = cvtest::randReal(rng)*360; cvtest 764 modules/imgproc/test/test_imgwarp.cpp double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; cvtest 765 modules/imgproc/test/test_imgwarp.cpp a[2] = (src.cols - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 766 modules/imgproc/test/test_imgwarp.cpp a[5] = (src.rows - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 767 modules/imgproc/test/test_imgwarp.cpp a[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); cvtest 769 modules/imgproc/test/test_imgwarp.cpp k[0] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 770 modules/imgproc/test/test_imgwarp.cpp k[1] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 773 modules/imgproc/test/test_imgwarp.cpp k[2] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 774 modules/imgproc/test/test_imgwarp.cpp k[3] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 776 modules/imgproc/test/test_imgwarp.cpp cvtest::initUndistortMap( _a, _k, test_mat[INPUT][1].size(), test_mat[INPUT][1], test_mat[INPUT][2] ); cvtest 839 modules/imgproc/test/test_imgwarp.cpp types[INPUT][1] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 840 modules/imgproc/test/test_imgwarp.cpp types[INPUT][2] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 842 modules/imgproc/test/test_imgwarp.cpp sizes[INPUT][2] = cvtest::randInt(rng)%2 ? cvSize(4,1) : cvSize(1,4); cvtest 904 modules/imgproc/test/test_imgwarp.cpp double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; cvtest 905 modules/imgproc/test/test_imgwarp.cpp a[2] = (src.cols - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 906 modules/imgproc/test/test_imgwarp.cpp a[5] = (src.rows - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 907 modules/imgproc/test/test_imgwarp.cpp a[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); cvtest 909 modules/imgproc/test/test_imgwarp.cpp k[0] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 910 modules/imgproc/test/test_imgwarp.cpp k[1] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 913 modules/imgproc/test/test_imgwarp.cpp if( cvtest::randInt(rng)%4 != 0 ) cvtest 915 modules/imgproc/test/test_imgwarp.cpp k[2] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 916 modules/imgproc/test/test_imgwarp.cpp k[3] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 921 modules/imgproc/test/test_imgwarp.cpp new_cam[0] = a[0] + (cvtest::randReal(rng) - (double)0.5)*0.2*a[0]; //10% cvtest 922 modules/imgproc/test/test_imgwarp.cpp new_cam[4] = a[4] + (cvtest::randReal(rng) - (double)0.5)*0.2*a[4]; //10% cvtest 923 modules/imgproc/test/test_imgwarp.cpp new_cam[2] = a[2] + (cvtest::randReal(rng) - (double)0.5)*0.3*test_mat[INPUT][0].rows; //15% cvtest 924 modules/imgproc/test/test_imgwarp.cpp new_cam[5] = a[5] + (cvtest::randReal(rng) - (double)0.5)*0.3*test_mat[INPUT][0].cols; //15% cvtest 928 modules/imgproc/test/test_imgwarp.cpp zero_distortion = (cvtest::randInt(rng)%2) == 0 ? false : true; cvtest 931 modules/imgproc/test/test_imgwarp.cpp zero_new_cam = (cvtest::randInt(rng)%2) == 0 ? false : true; cvtest 935 modules/imgproc/test/test_imgwarp.cpp useCPlus = ((cvtest::randInt(rng) % 2)!=0); cvtest 959 modules/imgproc/test/test_imgwarp.cpp cvtest::initUndistortMap( test_mat[INPUT][1], test_mat[INPUT][2], dst.size(), mapx, mapy ); cvtest 967 modules/imgproc/test/test_imgwarp.cpp class CV_UndistortMapTest : public cvtest::ArrayTest cvtest 1001 modules/imgproc/test/test_imgwarp.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 1002 modules/imgproc/test/test_imgwarp.cpp int depth = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; cvtest 1006 modules/imgproc/test/test_imgwarp.cpp dualChannel = cvtest::randInt(rng)%2 == 0; cvtest 1010 modules/imgproc/test/test_imgwarp.cpp sizes[INPUT][1] = cvtest::randInt(rng)%2 ? cvSize(4,1) : cvSize(1,4); cvtest 1022 modules/imgproc/test/test_imgwarp.cpp cvtest::ArrayTest::fill_array( test_case_idx, i, j, arr ); cvtest 1046 modules/imgproc/test/test_imgwarp.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 1057 modules/imgproc/test/test_imgwarp.cpp double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; cvtest 1058 modules/imgproc/test/test_imgwarp.cpp a[2] = (mapx.cols - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 1059 modules/imgproc/test/test_imgwarp.cpp a[5] = (mapx.rows - 1)*0.5 + cvtest::randReal(rng)*10 - 5; cvtest 1060 modules/imgproc/test/test_imgwarp.cpp a[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); cvtest 1062 modules/imgproc/test/test_imgwarp.cpp k[0] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 1063 modules/imgproc/test/test_imgwarp.cpp k[1] = cvtest::randReal(rng)*0.06 - 0.03; cvtest 1066 modules/imgproc/test/test_imgwarp.cpp k[2] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 1067 modules/imgproc/test/test_imgwarp.cpp k[3] = cvtest::randReal(rng)*0.004 - 0.002; cvtest 1085 modules/imgproc/test/test_imgwarp.cpp cvtest::initUndistortMap( test_mat[INPUT][0], test_mat[INPUT][1], test_mat[REF_OUTPUT][0].size(), mapx, mapy ); cvtest 1167 modules/imgproc/test/test_imgwarp.cpp int src_depth = cvtest::randInt(rng) % 2, dst_depth; cvtest 1168 modules/imgproc/test/test_imgwarp.cpp int cn = cvtest::randInt(rng) % 2 ? 3 : 1; cvtest 1172 modules/imgproc/test/test_imgwarp.cpp if( src_depth < CV_32F && cvtest::randInt(rng) % 2 ) cvtest 1179 modules/imgproc/test/test_imgwarp.cpp dst_size.width = cvRound(sqrt(cvtest::randReal(rng)*src_size.width) + 1); cvtest 1180 modules/imgproc/test/test_imgwarp.cpp dst_size.height = cvRound(sqrt(cvtest::randReal(rng)*src_size.height) + 1); cvtest 1185 modules/imgproc/test/test_imgwarp.cpp center.x = (float)(cvtest::randReal(rng)*src_size.width); cvtest 1186 modules/imgproc/test/test_imgwarp.cpp center.y = (float)(cvtest::randReal(rng)*src_size.height); cvtest 1189 modules/imgproc/test/test_imgwarp.cpp test_cpp = (cvtest::randInt(rng) & 256) == 0; cvtest 1275 modules/imgproc/test/test_imgwarp.cpp int msz, src_depth = cvtest::randInt(rng) % 2, dst_depth; cvtest 1276 modules/imgproc/test/test_imgwarp.cpp int cn = cvtest::randInt(rng) % 2 ? 3 : 1; cvtest 1279 modules/imgproc/test/test_imgwarp.cpp if( src_depth < CV_32F && cvtest::randInt(rng) % 2 ) cvtest 1290 modules/imgproc/test/test_imgwarp.cpp dsz.width = cvRound(sqrt(cvtest::randReal(rng)*msz) + 1); cvtest 1291 modules/imgproc/test/test_imgwarp.cpp dsz.height = cvRound(sqrt(cvtest::randReal(rng)*msz) + 1); cvtest 1332 modules/imgproc/test/test_imgwarp.cpp center.x = (float)((cvtest::randReal(rng)*1.2 - 0.1)*src.cols); cvtest 1333 modules/imgproc/test/test_imgwarp.cpp center.y = (float)((cvtest::randReal(rng)*1.2 - 0.1)*src.rows); cvtest 1334 modules/imgproc/test/test_imgwarp.cpp angle = cvtest::randReal(rng)*360; cvtest 1335 modules/imgproc/test/test_imgwarp.cpp scale = cvtest::randReal(rng)*0.2 + 0.9; cvtest 1518 modules/imgproc/test/test_imgwarp.cpp cvtest::TS::ptr()->printf(cvtest::TS::SUMMARY, "Inf norm: %f\n", static_cast<float>(norm(actual, expected, NORM_INF))); cvtest 1519 modules/imgproc/test/test_imgwarp.cpp cvtest::TS::ptr()->printf(cvtest::TS::SUMMARY, "Error in : (%d, %d)\n", dx, dy); cvtest 1533 modules/imgproc/test/test_imgwarp.cpp ASSERT_EQ(cvtest::norm(one_channel_diff, cv::NORM_INF), 0); cvtest 1631 modules/imgproc/test/test_imgwarp.cpp ASSERT_GE(eps, cvtest::norm(dst_reference, dst_actual, cv::NORM_INF)); cvtest 58 modules/imgproc/test/test_imgwarp_strict.cpp cvtest::TS::ptr()->printf(cvtest::TS::SUMMARY, buffer); cvtest 73 modules/imgproc/test/test_imgwarp_strict.cpp public cvtest::BaseTest cvtest 105 modules/imgproc/test/test_imgwarp_strict.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 165 modules/imgproc/test/test_imgwarp_strict.cpp if (cvtest::randInt(rng) % 2) cvtest 265 modules/imgproc/test/test_imgwarp_strict.cpp PRINT_TO_LOG("\nNorm of the difference: %lf\n", cvtest::norm(reference_dst, _dst, NORM_INF)); cvtest 312 modules/imgproc/test/test_imgwarp_strict.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 968 modules/imgproc/test/test_imgwarp_strict.cpp if (cvtest::TS::ptr()->get_err_code() == cvtest::TS::FAIL_BAD_ACCURACY) cvtest 53 modules/imgproc/test/test_intersection.cpp class CV_RotatedRectangleIntersectionTest: public cvtest::ArrayTest cvtest 54 modules/imgproc/test/test_moments.cpp class CV_MomentsTest : public cvtest::ArrayTest cvtest 88 modules/imgproc/test/test_moments.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 112 modules/imgproc/test/test_moments.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 113 modules/imgproc/test/test_moments.cpp int cn = (cvtest::randInt(rng) % 4) + 1; cvtest 114 modules/imgproc/test/test_moments.cpp int depth = cvtest::randInt(rng) % 4; cvtest 117 modules/imgproc/test/test_moments.cpp is_binary = cvtest::randInt(rng) % 2 != 0; cvtest 119 modules/imgproc/test/test_moments.cpp try_umat = cvtest::randInt(rng) % 5 != 0; cvtest 121 modules/imgproc/test/test_moments.cpp try_umat = cvtest::randInt(rng) % 2 != 0; cvtest 144 modules/imgproc/test/test_moments.cpp coi = cvtest::randInt(rng) % cn; cvtest 158 modules/imgproc/test/test_moments.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 330 modules/imgproc/test/test_moments.cpp class CV_HuMomentsTest : public cvtest::ArrayTest cvtest 358 modules/imgproc/test/test_moments.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 367 modules/imgproc/test/test_moments.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 383 modules/imgproc/test/test_moments.cpp int code = cvtest::ArrayTest::prepare_test_case( test_case_idx ); cvtest 437 modules/imgproc/test/test_moments.cpp class CV_SmallContourMomentTest : public cvtest::BaseTest cvtest 460 modules/imgproc/test/test_moments.cpp ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); cvtest 52 modules/imgproc/test/test_pc.cpp class CV_PhaseCorrelatorTest : public cvtest::ArrayTest cvtest 64 modules/imgproc/test/test_pc.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 83 modules/imgproc/test/test_pc.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 47 modules/imgproc/test/test_templmatch.cpp class CV_TemplMatchTest : public cvtest::ArrayTest cvtest 81 modules/imgproc/test/test_templmatch.cpp int code = cvtest::ArrayTest::read_params( fs ); cvtest 86 modules/imgproc/test/test_templmatch.cpp max_template_size = cvtest::clipInt( max_template_size, 1, 100 ); cvtest 94 modules/imgproc/test/test_templmatch.cpp cvtest::ArrayTest::get_minmax_bounds( i, j, type, low, high ); cvtest 108 modules/imgproc/test/test_templmatch.cpp int depth = cvtest::randInt(rng) % 2, cn = cvtest::randInt(rng) & 1 ? 3 : 1; cvtest 109 modules/imgproc/test/test_templmatch.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 115 modules/imgproc/test/test_templmatch.cpp sizes[INPUT][1].width = cvtest::randInt(rng)%MIN(sizes[INPUT][1].width,max_template_size) + 1; cvtest 116 modules/imgproc/test/test_templmatch.cpp sizes[INPUT][1].height = cvtest::randInt(rng)%MIN(sizes[INPUT][1].height,max_template_size) + 1; cvtest 121 modules/imgproc/test/test_templmatch.cpp method = cvtest::randInt(rng)%6; cvtest 122 modules/imgproc/test/test_templmatch.cpp test_cpp = (cvtest::randInt(rng) & 256) == 0; cvtest 47 modules/imgproc/test/test_thresh.cpp class CV_ThreshTest : public cvtest::ArrayTest cvtest 78 modules/imgproc/test/test_thresh.cpp int depth = cvtest::randInt(rng) % 3, cn = cvtest::randInt(rng) % 4 + 1; cvtest 79 modules/imgproc/test/test_thresh.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 83 modules/imgproc/test/test_thresh.cpp thresh_type = cvtest::randInt(rng) % 5; cvtest 87 modules/imgproc/test/test_thresh.cpp thresh_val = (float)(cvtest::randReal(rng)*350. - 50.); cvtest 88 modules/imgproc/test/test_thresh.cpp max_val = (float)(cvtest::randReal(rng)*350. - 50.); cvtest 89 modules/imgproc/test/test_thresh.cpp if( cvtest::randInt(rng)%4 == 0 ) cvtest 96 modules/imgproc/test/test_thresh.cpp thresh_val = (float)(cvtest::randReal(rng)*(max_val - min_val) + min_val); cvtest 97 modules/imgproc/test/test_thresh.cpp max_val = (float)(cvtest::randReal(rng)*(max_val - min_val) + min_val); cvtest 98 modules/imgproc/test/test_thresh.cpp if( cvtest::randInt(rng)%4 == 0 ) cvtest 103 modules/imgproc/test/test_thresh.cpp thresh_val = (float)(cvtest::randReal(rng)*1000. - 500.); cvtest 104 modules/imgproc/test/test_thresh.cpp max_val = (float)(cvtest::randReal(rng)*1000. - 500.); cvtest 49 modules/imgproc/test/test_watershed.cpp class CV_WatershedTest : public cvtest::BaseTest cvtest 70 modules/imgproc/test/test_watershed.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 126 modules/imgproc/test/test_watershed.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISMATCH ); cvtest 129 modules/imgproc/test/test_watershed.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 220 modules/ml/test/test_emknearestkmeans.cpp class CV_KMeansTest : public cvtest::BaseTest { cvtest 240 modules/ml/test/test_emknearestkmeans.cpp int code = cvtest::TS::OK; cvtest 247 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad output labels if flag==KMEANS_PP_CENTERS.\n" ); cvtest 248 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 252 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) if flag==KMEANS_PP_CENTERS.\n", err ); cvtest 253 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 260 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad output labels if flag==KMEANS_RANDOM_CENTERS.\n" ); cvtest 261 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 265 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) if flag==KMEANS_RANDOM_CENTERS.\n", err ); cvtest 266 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 277 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad output labels if flag==KMEANS_USE_INITIAL_LABELS.\n" ); cvtest 278 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 282 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) if flag==KMEANS_USE_INITIAL_LABELS.\n", err ); cvtest 283 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 290 modules/ml/test/test_emknearestkmeans.cpp class CV_KNearestTest : public cvtest::BaseTest { cvtest 314 modules/ml/test/test_emknearestkmeans.cpp int code = cvtest::TS::OK; cvtest 323 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad output labels.\n" ); cvtest 324 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 328 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) on test data.\n", err ); cvtest 329 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 339 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad output labels.\n" ); cvtest 340 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 344 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Bad accuracy (%f) on test data.\n", err ); cvtest 345 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 376 modules/ml/test/test_emknearestkmeans.cpp class CV_EMTest : public cvtest::BaseTest cvtest 393 modules/ml/test/test_emknearestkmeans.cpp int code = cvtest::TS::OK; cvtest 414 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Case index %i : Bad output labels.\n", caseIndex ); cvtest 415 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 419 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Case index %i : Bad accuracy (%f) on train data.\n", caseIndex, err ); cvtest 420 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 433 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Case index %i : Bad output labels.\n", caseIndex ); cvtest 434 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 438 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Case index %i : Bad accuracy (%f) on test data.\n", caseIndex, err ); cvtest 439 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 473 modules/ml/test/test_emknearestkmeans.cpp int code = cvtest::TS::OK; cvtest 479 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 485 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 491 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 497 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 503 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 509 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 515 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 521 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 527 modules/ml/test/test_emknearestkmeans.cpp code = currCode == cvtest::TS::OK ? code : currCode; cvtest 533 modules/ml/test/test_emknearestkmeans.cpp class CV_EMTest_SaveLoad : public cvtest::BaseTest { cvtest 539 modules/ml/test/test_emknearestkmeans.cpp int code = cvtest::TS::OK; cvtest 569 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Crash in write method.\n" ); cvtest 570 modules/ml/test/test_emknearestkmeans.cpp ts->set_failed_test_info( cvtest::TS::FAIL_EXCEPTION ); cvtest 583 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Crash in read method.\n" ); cvtest 584 modules/ml/test/test_emknearestkmeans.cpp ts->set_failed_test_info( cvtest::TS::FAIL_EXCEPTION ); cvtest 595 modules/ml/test/test_emknearestkmeans.cpp ts->printf( cvtest::TS::LOG, "Different prediction results before writeing and after reading (errCaseCount=%d).\n", errCaseCount ); cvtest 596 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 603 modules/ml/test/test_emknearestkmeans.cpp class CV_EMTest_Classification : public cvtest::BaseTest cvtest 619 modules/ml/test/test_emknearestkmeans.cpp ts->printf(cvtest::TS::LOG, "File with spambase dataset cann't be read.\n"); cvtest 620 modules/ml/test/test_emknearestkmeans.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 684 modules/ml/test/test_emknearestkmeans.cpp int code = cvtest::TS::OK; cvtest 687 modules/ml/test/test_emknearestkmeans.cpp ts->printf(cvtest::TS::LOG, "Too large train classification error (calc = %f, valid=%f).\n", trainError, maxTrainError); cvtest 688 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 692 modules/ml/test/test_emknearestkmeans.cpp ts->printf(cvtest::TS::LOG, "Too large test classification error (calc = %f, valid=%f).\n", testError, maxTestError); cvtest 693 modules/ml/test/test_emknearestkmeans.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 13 modules/ml/test/test_gbttest.cpp class CV_GBTreesTest : public cvtest::BaseTest cvtest 80 modules/ml/test/test_gbttest.cpp int code = cvtest::TS::OK; cvtest 96 modules/ml/test/test_gbttest.cpp ts->printf( cvtest::TS::LOG, "Bad test_num value in CV_GBTreesTest::TestTrainPredict(..) function." ); cvtest 97 modules/ml/test/test_gbttest.cpp return cvtest::TS::FAIL_BAD_ARG_CHECK; cvtest 109 modules/ml/test/test_gbttest.cpp ts->printf( cvtest::TS::LOG, "File reading error." ); cvtest 110 modules/ml/test/test_gbttest.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 142 modules/ml/test/test_gbttest.cpp ts->printf( cvtest::TS::LOG, "Model training was failed."); cvtest 143 modules/ml/test/test_gbttest.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 156 modules/ml/test/test_gbttest.cpp return cvtest::TS::FAIL_GENERIC; cvtest 167 modules/ml/test/test_gbttest.cpp ts->printf( cvtest::TS::LOG, "Test error is out of range:\n" cvtest 170 modules/ml/test/test_gbttest.cpp return cvtest::TS::FAIL_BAD_ACCURACY; cvtest 173 modules/ml/test/test_gbttest.cpp return cvtest::TS::OK; cvtest 181 modules/ml/test/test_gbttest.cpp return cvtest::TS::FAIL_GENERIC; cvtest 200 modules/ml/test/test_gbttest.cpp int code = cvtest::TS::OK; cvtest 213 modules/ml/test/test_gbttest.cpp ts->printf( cvtest::TS::LOG, "first and second saved files differ in %n-line; first %n line: %s; second %n-line: %s", cvtest 215 modules/ml/test/test_gbttest.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 220 modules/ml/test/test_gbttest.cpp ts->printf( cvtest::TS::LOG, "First and second saved files differ in %n-line; first %n line: %s; second %n-line: %s", cvtest 222 modules/ml/test/test_gbttest.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 237 modules/ml/test/test_gbttest.cpp ts->printf( cvtest::TS::LOG, "Responses predicted before saving and after loading are different" ); cvtest 238 modules/ml/test/test_gbttest.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 254 modules/ml/test/test_gbttest.cpp int code = cvtest::TS::OK; cvtest 260 modules/ml/test/test_gbttest.cpp if (temp_code != cvtest::TS::OK) cvtest 269 modules/ml/test/test_gbttest.cpp if (temp_code != cvtest::TS::OK) cvtest 84 modules/ml/test/test_lr.cpp class CV_LRTest : public cvtest::BaseTest cvtest 112 modules/ml/test/test_lr.cpp int test_code = cvtest::TS::OK; cvtest 116 modules/ml/test/test_lr.cpp ts->printf(cvtest::TS::LOG, "Bad prediction labels\n" ); cvtest 117 modules/ml/test/test_lr.cpp test_code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 121 modules/ml/test/test_lr.cpp ts->printf(cvtest::TS::LOG, "Bad accuracy of (%f)\n", error); cvtest 122 modules/ml/test/test_lr.cpp test_code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 137 modules/ml/test/test_lr.cpp class CV_LRTest_SaveLoad : public cvtest::BaseTest cvtest 148 modules/ml/test/test_lr.cpp int code = cvtest::TS::OK; cvtest 175 modules/ml/test/test_lr.cpp ts->printf(cvtest::TS::LOG, "Crash in write method.\n" ); cvtest 176 modules/ml/test/test_lr.cpp ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); cvtest 188 modules/ml/test/test_lr.cpp ts->printf(cvtest::TS::LOG, "Crash in write method.\n" ); cvtest 189 modules/ml/test/test_lr.cpp ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); cvtest 210 modules/ml/test/test_lr.cpp ts->printf( cvtest::TS::LOG, "Different prediction results before writing and after reading (errorCount=%d).\n", errorCount ); cvtest 211 modules/ml/test/test_lr.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 54 modules/ml/test/test_mltests.cpp int code = cvtest::TS::OK; cvtest 57 modules/ml/test/test_mltests.cpp if (code == cvtest::TS::OK) cvtest 107 modules/ml/test/test_mltests.cpp ts->printf( cvtest::TS::LOG, "Test case = %d; test error = %f; mean error = %f (diff=%f), %d*sigma = %f\n", cvtest 111 modules/ml/test/test_mltests.cpp ts->printf( cvtest::TS::LOG, "abs(%f - %f) > %f - OUT OF RANGE!\n", curErr, mean, coeff*sigma, coeff ); cvtest 112 modules/ml/test/test_mltests.cpp return cvtest::TS::FAIL_BAD_ACCURACY; cvtest 115 modules/ml/test/test_mltests.cpp ts->printf( cvtest::TS::LOG, ".\n" ); cvtest 120 modules/ml/test/test_mltests.cpp ts->printf( cvtest::TS::LOG, "validation info is not suitable" ); cvtest 121 modules/ml/test/test_mltests.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 123 modules/ml/test/test_mltests.cpp return cvtest::TS::OK; cvtest 244 modules/ml/test/test_mltests2.cpp return cvtest::TS::OK;; cvtest 254 modules/ml/test/test_mltests2.cpp int code = cvtest::TS::OK; cvtest 258 modules/ml/test/test_mltests2.cpp if (temp_code == cvtest::TS::OK) cvtest 260 modules/ml/test/test_mltests2.cpp if (temp_code != cvtest::TS::OK) cvtest 265 modules/ml/test/test_mltests2.cpp ts->printf( cvtest::TS::LOG, "validation file is not determined or not correct" ); cvtest 266 modules/ml/test/test_mltests2.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 278 modules/ml/test/test_mltests2.cpp ts->printf( cvtest::TS::LOG, "data path is empty" ); cvtest 279 modules/ml/test/test_mltests2.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 300 modules/ml/test/test_mltests2.cpp ts->printf( cvtest::TS::LOG, "file %s can not be read\n", filename.c_str() ); cvtest 301 modules/ml/test/test_mltests2.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 305 modules/ml/test/test_mltests2.cpp return cvtest::TS::OK; cvtest 444 modules/ml/test/test_mltests2.cpp ts->printf( cvtest::TS::LOG, "in test case %d model training was failed", testCaseIdx ); cvtest 445 modules/ml/test/test_mltests2.cpp return cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 447 modules/ml/test/test_mltests2.cpp return cvtest::TS::OK; cvtest 42 modules/ml/test/test_precomp.hpp class CV_MLBaseTest : public cvtest::BaseTest cvtest 57 modules/ml/test/test_save_load.cpp int code = cvtest::TS::OK; cvtest 60 modules/ml/test/test_save_load.cpp if( code == cvtest::TS::OK ) cvtest 64 modules/ml/test/test_save_load.cpp if( code == cvtest::TS::OK ) cvtest 75 modules/ml/test/test_save_load.cpp ts->printf( cvtest::TS::LOG, "model can not be trained" ); cvtest 82 modules/ml/test/test_save_load.cpp int code = cvtest::TS::OK; cvtest 88 modules/ml/test/test_save_load.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 98 modules/ml/test/test_save_load.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 110 modules/ml/test/test_save_load.cpp ts->printf( cvtest::TS::LOG, cvtest 114 modules/ml/test/test_save_load.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 142 modules/ml/test/test_save_load.cpp ts->printf( cvtest::TS::LOG, "in test case %d responses predicted before saving and after loading is different", testCaseIdx ); cvtest 143 modules/ml/test/test_save_load.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 160 modules/ml/test/test_save_load.cpp class CV_LegacyTest : public cvtest::BaseTest cvtest 164 modules/ml/test/test_save_load.cpp : cvtest::BaseTest(), modelName(_modelName), suffixes(_suffixes) cvtest 188 modules/ml/test/test_save_load.cpp int code = cvtest::TS::OK; cvtest 206 modules/ml/test/test_save_load.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 50 modules/ml/test/test_svmtrainauto.cpp class CV_SVMTrainAutoTest : public cvtest::BaseTest { cvtest 85 modules/ml/test/test_svmtrainauto.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 50 modules/objdetect/perf/opencl/perf_cascades.cpp cvtest::ocl::perf::safeFinish(); cvtest 64 modules/objdetect/test/test_cascadeandhog.cpp class CV_DetectorTest : public cvtest::BaseTest cvtest 148 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::OK; cvtest 231 modules/objdetect/test/test_cascadeandhog.cpp if (!write_results && temp_code == cvtest::TS::OK) cvtest 234 modules/objdetect/test/test_cascadeandhog.cpp if (temp_code != cvtest::TS::OK) cvtest 249 modules/objdetect/test/test_cascadeandhog.cpp ts->printf( cvtest::TS::LOG, "validation file is not determined or not correct" ); cvtest 250 modules/objdetect/test/test_cascadeandhog.cpp code = cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 270 modules/objdetect/test/test_cascadeandhog.cpp ts->printf( cvtest::TS::LOG, msg ); cvtest 271 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 274 modules/objdetect/test/test_cascadeandhog.cpp if( code != cvtest::TS::OK ) cvtest 293 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::OK; cvtest 381 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::FAIL_BAD_ACCURACY; cvtest 383 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::OK; cvtest 435 modules/objdetect/test/test_cascadeandhog.cpp ts->printf( cvtest::TS::LOG, "cascade %s can not be opened"); cvtest 436 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 452 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::OK; cvtest 470 modules/objdetect/test/test_cascadeandhog.cpp ts->printf( cvtest::TS::LOG, "cascade %s can not be opened"); cvtest 471 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::FAIL_INVALID_TEST_DATA; cvtest 477 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::OK; cvtest 518 modules/objdetect/test/test_cascadeandhog.cpp return cvtest::TS::OK; cvtest 526 modules/objdetect/test/test_cascadeandhog.cpp img = imread(cvtest::TS::ptr()->get_data_path() + "/cascadeandhog/images/karen-and-rob.png"); cvtest 556 modules/objdetect/test/test_cascadeandhog.cpp cvtest::TS* ts; cvtest 562 modules/objdetect/test/test_cascadeandhog.cpp ts(cvtest::TS::ptr()), failed(false) cvtest 1082 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::SUMMARY, "Found locations are not equal (see detect function)\n"); cvtest 1083 modules/objdetect/test/test_cascadeandhog.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 1090 modules/objdetect/test/test_cascadeandhog.cpp double diff_norm = cvtest::norm(actual_weights, weights, NORM_L2); cvtest 1093 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::SUMMARY, "Weights for found locations aren't equal.\n" cvtest 1095 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::LOG, "Channels: %d\n", img.channels()); cvtest 1097 modules/objdetect/test/test_cascadeandhog.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 1171 modules/objdetect/test/test_cascadeandhog.cpp double diff_norm = cvtest::norm(actual_descriptors, descriptors, NORM_L2); cvtest 1175 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::SUMMARY, "Norm of the difference: %lf\n", diff_norm); cvtest 1176 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::SUMMARY, "Found descriptors are not equal (see compute function)\n"); cvtest 1177 modules/objdetect/test/test_cascadeandhog.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 1178 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::LOG, "Channels: %d\n", img.channels()); cvtest 1321 modules/objdetect/test/test_cascadeandhog.cpp double diff_norm = cvtest::norm(reference_mats[i], actual_mats[i], NORM_L2); cvtest 1324 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::LOG, "%s matrices are not equal\n" cvtest 1326 modules/objdetect/test/test_cascadeandhog.cpp ts->printf(cvtest::TS::LOG, "Channels: %d\n", img.channels()); cvtest 1327 modules/objdetect/test/test_cascadeandhog.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 1337 modules/objdetect/test/test_cascadeandhog.cpp cvtest::TS* ts = cvtest::TS::ptr(); cvtest 1367 modules/objdetect/test/test_cascadeandhog.cpp String root = cvtest::TS::ptr()->get_data_path() + "cascadeandhog/cascades/"; cvtest 63 modules/photo/test/test_cloning.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "cloning/Normal_Cloning/"; cvtest 88 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 94 modules/photo/test/test_cloning.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "cloning/Mixed_Cloning/"; cvtest 119 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 126 modules/photo/test/test_cloning.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "cloning/Monochrome_Transfer/"; cvtest 151 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 158 modules/photo/test/test_cloning.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "cloning/color_change/"; cvtest 177 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 184 modules/photo/test/test_cloning.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "cloning/Illumination_Change/"; cvtest 201 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 208 modules/photo/test/test_cloning.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "cloning/Texture_Flattening/"; cvtest 227 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 54 modules/photo/test/test_decolor.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "decolor/"; cvtest 66 modules/photo/test/test_decolor.cpp double error_grayscale = cvtest::norm(reference_grayscale, grayscale, NORM_L1); cvtest 70 modules/photo/test/test_decolor.cpp double error_boost = cvtest::norm(reference_boost, color_boost, NORM_L1); cvtest 80 modules/photo/test/test_denoise_tvl1.cpp cv::Mat img = cv::imread(cvtest::TS::ptr()->get_data_path() + "shared/lena.png", 0), noisy, res; cvtest 61 modules/photo/test/test_denoising.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "denoising/"; cvtest 76 modules/photo/test/test_denoising.cpp ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2)); cvtest 81 modules/photo/test/test_denoising.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "denoising/"; cvtest 96 modules/photo/test/test_denoising.cpp ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2)); cvtest 102 modules/photo/test/test_denoising.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "denoising/"; cvtest 121 modules/photo/test/test_denoising.cpp ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2)); cvtest 127 modules/photo/test/test_denoising.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "denoising/"; cvtest 146 modules/photo/test/test_denoising.cpp ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2)); cvtest 162 modules/photo/test/test_denoising.cpp string imgname = string(cvtest::TS::ptr()->get_data_path()) + "shared/5MP.png"; cvtest 53 modules/photo/test/test_denoising.cuda.cpp using namespace cvtest; cvtest 91 modules/photo/test/test_hdr.cpp string test_path = string(cvtest::TS::ptr()->get_data_path()) + "hdr/tonemap/"; cvtest 131 modules/photo/test/test_hdr.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "shared/"; cvtest 157 modules/photo/test/test_hdr.cpp string test_path = string(cvtest::TS::ptr()->get_data_path()) + "hdr/"; cvtest 183 modules/photo/test/test_hdr.cpp string test_path = string(cvtest::TS::ptr()->get_data_path()) + "hdr/"; cvtest 206 modules/photo/test/test_hdr.cpp string test_path = string(cvtest::TS::ptr()->get_data_path()) + "hdr/"; cvtest 226 modules/photo/test/test_hdr.cpp string test_path = string(cvtest::TS::ptr()->get_data_path()) + "hdr/"; cvtest 245 modules/photo/test/test_hdr.cpp string test_path = string(cvtest::TS::ptr()->get_data_path()) + "hdr/"; cvtest 49 modules/photo/test/test_inpaint.cpp class CV_InpaintTest : public cvtest::BaseTest cvtest 73 modules/photo/test/test_inpaint.cpp ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA ); cvtest 94 modules/photo/test/test_inpaint.cpp double n1 = cvtest::norm(diff1.reshape(1), NORM_INF, inv_mask.reshape(1)); cvtest 95 modules/photo/test/test_inpaint.cpp double n2 = cvtest::norm(diff2.reshape(1), NORM_INF, inv_mask.reshape(1)); cvtest 99 modules/photo/test/test_inpaint.cpp ts->set_failed_test_info( cvtest::TS::FAIL_MISMATCH ); cvtest 106 modules/photo/test/test_inpaint.cpp n1 = cvtest::norm(diff1.reshape(1), NORM_INF, mask.reshape(1)); cvtest 107 modules/photo/test/test_inpaint.cpp n2 = cvtest::norm(diff2.reshape(1), NORM_INF, mask.reshape(1)); cvtest 112 modules/photo/test/test_inpaint.cpp ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY ); cvtest 116 modules/photo/test/test_inpaint.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 54 modules/photo/test/test_npr.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/"; cvtest 65 modules/photo/test/test_npr.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 71 modules/photo/test/test_npr.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/"; cvtest 82 modules/photo/test/test_npr.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 89 modules/photo/test/test_npr.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/"; cvtest 100 modules/photo/test/test_npr.cpp double error = cvtest::norm(reference, result, NORM_L1); cvtest 106 modules/photo/test/test_npr.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/"; cvtest 121 modules/photo/test/test_npr.cpp double color_pencil_error = cvtest::norm(color_pencil_reference, color_pencil_result, NORM_L1); cvtest 127 modules/photo/test/test_npr.cpp string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/"; cvtest 138 modules/photo/test/test_npr.cpp double stylized_error = cvtest::norm(stylized_reference, result, NORM_L1); cvtest 48 modules/shape/test/test_shape.cpp class ShapeBaseTest : public cvtest::BaseTest cvtest 67 modules/shape/test/test_shape.cpp filename << cvtest::TS::ptr()->get_data_path() cvtest 185 modules/shape/test/test_shape.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 187 modules/shape/test/test_shape.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 12 modules/stitching/perf/opencl/perf_stitch.cpp using namespace cvtest::ocl; cvtest 49 modules/stitching/test/test_blenders.cpp Mat image1 = imread(string(cvtest::TS::ptr()->get_data_path()) + "cv/shared/baboon.png"); cvtest 50 modules/stitching/test/test_blenders.cpp Mat image2 = imread(string(cvtest::TS::ptr()->get_data_path()) + "cv/shared/lena.png"); cvtest 75 modules/stitching/test/test_blenders.cpp Mat expected = imread(string(cvtest::TS::ptr()->get_data_path()) + "stitching/baboon_lena.png"); cvtest 76 modules/stitching/test/test_blenders.cpp double psnr = cvtest::PSNR(expected, result); cvtest 53 modules/stitching/test/test_matchers.cpp Mat img = imread(string(cvtest::TS::ptr()->get_data_path()) + "cv/shared/lena.png"); cvtest 114 modules/superres/test/test_superres.cpp cvtest::TS::ptr()->get_rng().fill(noise, cv::RNG::NORMAL, 0.0, sigma); cvtest 125 modules/superres/test/test_superres.cpp if (cvtest::TS::ptr()->get_rng().uniform(0, frequency) < 1) cvtest 220 modules/superres/test/test_superres.cpp const std::string inputVideoName = cvtest::TS::ptr()->get_data_path() + "car.avi"; cvtest 562 modules/ts/include/opencv2/ts.hpp #define TEST_DUMP_OCL_INFO cvtest::ocl::dumpOpenCLDevice(); cvtest 573 modules/ts/include/opencv2/ts.hpp cvtest::TS::ptr()->init(resourcesubdir); \ cvtest 575 modules/ts/include/opencv2/ts.hpp cvtest::printVersionInfo(); \ cvtest 101 modules/ts/include/opencv2/ts/cuda_test.hpp #define ALL_DEVICES testing::ValuesIn(cvtest::DeviceManager::instance().values()) cvtest 112 modules/ts/include/opencv2/ts/cuda_test.hpp #define EXPECT_MAT_NEAR(m1, m2, eps) EXPECT_PRED_FORMAT3(cvtest::assertMatNear, m1, m2, eps) cvtest 113 modules/ts/include/opencv2/ts/cuda_test.hpp #define ASSERT_MAT_NEAR(m1, m2, eps) ASSERT_PRED_FORMAT3(cvtest::assertMatNear, m1, m2, eps) cvtest 355 modules/ts/include/opencv2/ts/cuda_test.hpp CV_TEST_MAIN(resourcesubdir, cvtest::parseCudaDeviceOptions(argc, argv), cvtest::printCudaInfo(), cv::setUseOptimized(false)) cvtest 100 modules/ts/include/opencv2/ts/ocl_perf.hpp for (cvtest::ocl::perf::safeFinish(); startTimer(), next(); cvtest::ocl::perf::safeFinish(), stopTimer()) cvtest 103 modules/ts/include/opencv2/ts/ocl_perf.hpp for(declare.iterations(n), cvtest::ocl::perf::safeFinish(); startTimer(), next(); cvtest::ocl::perf::safeFinish(), stopTimer()) cvtest 106 modules/ts/include/opencv2/ts/ocl_perf.hpp for (declare.runs(runsNum), cvtest::ocl::perf::safeFinish(); startTimer(), next(); cvtest::ocl::perf::safeFinish(), stopTimer()) \ cvtest 107 modules/ts/include/opencv2/ts/ocl_perf.hpp for (int r = 0; r < runsNum; cvtest::ocl::perf::safeFinish(), ++r) cvtest 250 modules/ts/include/opencv2/ts/ocl_test.hpp return cvtest::randomMat(dataRng, size, type, minVal, maxVal, useRoi); cvtest 292 modules/ts/include/opencv2/ts/ocl_test.hpp return cvtest::norm(m1.getMat(), m2.getMat(), cv::NORM_INF, mask) / cvtest 294 modules/ts/include/opencv2/ts/ocl_test.hpp (double)std::max(cvtest::norm(m1.getMat(), cv::NORM_INF), cvtest::norm(m2.getMat(), cv::NORM_INF))); cvtest 299 modules/ts/include/opencv2/ts/ocl_test.hpp double norm_inf = cvtest::norm(m1.getMat(), m2.getMat(), cv::NORM_INF, mask); cvtest 302 modules/ts/include/opencv2/ts/ocl_test.hpp (double)std::max(cvtest::norm(m1.getMat(), cv::NORM_INF), cvtest::norm(m2.getMat(), cv::NORM_INF))); cvtest 615 modules/ts/include/opencv2/ts/ts_perf.hpp #define TEST_DUMP_OCL_INFO cvtest::ocl::dumpOpenCLDevice(); cvtest 625 modules/ts/include/opencv2/ts/ts_perf.hpp cvtest::printVersionInfo(); \ cvtest 48 modules/ts/src/cuda_test.cpp using namespace cvtest; cvtest 209 modules/ts/src/cuda_test.cpp cvtest::DeviceManager::instance().loadAll(); cvtest 214 modules/ts/src/cuda_test.cpp cvtest::DeviceManager::instance().load(device); cvtest 222 modules/ts/src/ocl_test.cpp return cv::imread(cvtest::TS::ptr()->get_data_path() + fileName, flags); cvtest 240 modules/ts/src/ocl_test.cpp return cvtest::norm(m.getMat(), NORM_INF, mask.getMat()); cvtest 245 modules/ts/src/ocl_test.cpp return cvtest::norm(m1.getMat(), m2.getMat(), NORM_INF, mask.getMat()); cvtest 257 modules/ts/src/ts_arrtest.cpp cvtest::copy( test_mat[INPUT_OUTPUT][j], arr, Mat() ); cvtest 1250 modules/ts/src/ts_func.cpp return cvtest::norm(temp, normType, Mat()); cvtest 1399 modules/ts/src/ts_func.cpp return isRelative ? result / (cvtest::norm(src2, normType) + DBL_EPSILON) : result; cvtest 1405 modules/ts/src/ts_func.cpp double diff = std::sqrt(cvtest::norm(_src1, _src2, NORM_L2SQR)/(_src1.total()*_src1.channels())); cvtest 1987 modules/ts/src/ts_func.cpp maxval = cvtest::norm( refarr, NORM_INF ); cvtest 48 modules/video/test/test_accum.cpp class CV_AccumBaseTest : public cvtest::ArrayTest cvtest 75 modules/video/test/test_accum.cpp int depth = cvtest::randInt(rng) % 3, cn = cvtest::randInt(rng) & 1 ? 3 : 1; cvtest 76 modules/video/test/test_accum.cpp int accdepth = std::max((int)(cvtest::randInt(rng) % 2 + 1), depth); cvtest 78 modules/video/test/test_accum.cpp cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types ); cvtest 88 modules/video/test/test_accum.cpp alpha = cvtest::randReal(rng); cvtest 122 modules/video/test/test_accum.cpp cvtest::add( src, 1, dst, 1, cvScalarAll(0.), temp, dst.type() ); cvtest 123 modules/video/test/test_accum.cpp cvtest::copy( temp, dst, mask ); cvtest 156 modules/video/test/test_accum.cpp cvtest::convert( src, temp, dst.type() ); cvtest 157 modules/video/test/test_accum.cpp cvtest::multiply( temp, temp, temp, 1 ); cvtest 158 modules/video/test/test_accum.cpp cvtest::add( temp, 1, dst, 1, cvScalarAll(0.), temp, dst.depth() ); cvtest 159 modules/video/test/test_accum.cpp cvtest::copy( temp, dst, mask ); cvtest 195 modules/video/test/test_accum.cpp cvtest::convert( src1, temp1, dst.type() ); cvtest 196 modules/video/test/test_accum.cpp cvtest::convert( src2, temp2, dst.type() ); cvtest 198 modules/video/test/test_accum.cpp cvtest::multiply( temp1, temp2, temp1, 1 ); cvtest 199 modules/video/test/test_accum.cpp cvtest::add( temp1, 1, dst, 1, cvScalarAll(0.), temp1, dst.depth() ); cvtest 200 modules/video/test/test_accum.cpp cvtest::copy( temp1, dst, mask ); cvtest 239 modules/video/test/test_accum.cpp cvtest::convert( src, temp, dst.type() ); cvtest 240 modules/video/test/test_accum.cpp cvtest::add( src, cvGetReal1D(&A, 0), dst, cvGetReal1D(&B, 0), cvScalarAll(0.), temp, temp.depth() ); cvtest 241 modules/video/test/test_accum.cpp cvtest::copy( temp, dst, mask ); cvtest 48 modules/video/test/test_camshift.cpp class CV_TrackBaseTest : public cvtest::BaseTest cvtest 89 modules/video/test/test_camshift.cpp cvtest::BaseTest::clear(); cvtest 95 modules/video/test/test_camshift.cpp int code = cvtest::BaseTest::read_params( fs ); cvtest 103 modules/video/test/test_camshift.cpp min_log_size = cvtest::clipInt( min_log_size, 1, 10 ); cvtest 104 modules/video/test/test_camshift.cpp max_log_size = cvtest::clipInt( max_log_size, 1, 10 ); cvtest 156 modules/video/test/test_camshift.cpp cvtest::BaseTest::prepare_test_case( test_case_idx ); cvtest 161 modules/video/test/test_camshift.cpp box0.size.width = (float)exp((cvtest::randReal(rng) * (max_log_size - min_log_size) + min_log_size)*CV_LOG2); cvtest 162 modules/video/test/test_camshift.cpp box0.size.height = (float)exp((cvtest::randReal(rng) * (max_log_size - min_log_size) + min_log_size)*CV_LOG2); cvtest 163 modules/video/test/test_camshift.cpp box0.angle = (float)(cvtest::randReal(rng)*180.); cvtest 172 modules/video/test/test_camshift.cpp img_size.width = cvRound(cvtest::randReal(rng)*m*0.5 + m + 1); cvtest 173 modules/video/test/test_camshift.cpp img_size.height = cvRound(cvtest::randReal(rng)*m*0.5 + m + 1); cvtest 174 modules/video/test/test_camshift.cpp img_type = cvtest::randInt(rng) % 2 ? CV_32F : CV_8U; cvtest 177 modules/video/test/test_camshift.cpp box0.center.x = (float)(img_size.width*0.5 + (cvtest::randReal(rng)-0.5)*(img_size.width - m)); cvtest 178 modules/video/test/test_camshift.cpp box0.center.y = (float)(img_size.height*0.5 + (cvtest::randReal(rng)-0.5)*(img_size.height - m)); cvtest 242 modules/video/test/test_camshift.cpp init_rect.x = cvFloor(box0.center.x - m*(0.45 + cvtest::randReal(rng)*0.2)); cvtest 243 modules/video/test/test_camshift.cpp init_rect.y = cvFloor(box0.center.y - m*(0.45 + cvtest::randReal(rng)*0.2)); cvtest 244 modules/video/test/test_camshift.cpp init_rect.width = cvCeil(box0.center.x + m*(0.45 + cvtest::randReal(rng)*0.2) - init_rect.x); cvtest 245 modules/video/test/test_camshift.cpp init_rect.height = cvCeil(box0.center.y + m*(0.45 + cvtest::randReal(rng)*0.2) - init_rect.y); cvtest 271 modules/video/test/test_camshift.cpp int code = cvtest::TS::OK; cvtest 283 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, "Invalid CvBox2D or CvConnectedComp was returned by cvCamShift\n" ); cvtest 284 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 293 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, "Incorrect CvBox2D size (=%.1f x %.1f, should be %.1f x %.1f)\n", cvtest 295 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 302 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, "Incorrect CvBox2D position (=(%.1f, %.1f), should be (%.1f, %.1f))\n", cvtest 304 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 316 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, "Incorrect CvBox2D angle (=%1.f, should be %1.f)\n", cvtest 318 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 329 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, cvtest 333 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 339 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, cvtest 341 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 409 modules/video/test/test_camshift.cpp init_rect.x = cvFloor(box0.center.x - m*(0.4 + cvtest::randReal(rng)*0.2)); cvtest 410 modules/video/test/test_camshift.cpp init_rect.y = cvFloor(box0.center.y - m*(0.4 + cvtest::randReal(rng)*0.2)); cvtest 411 modules/video/test/test_camshift.cpp init_rect.width = cvCeil(box0.center.x + m*(0.4 + cvtest::randReal(rng)*0.2) - init_rect.x); cvtest 412 modules/video/test/test_camshift.cpp init_rect.height = cvCeil(box0.center.y + m*(0.4 + cvtest::randReal(rng)*0.2) - init_rect.y); cvtest 438 modules/video/test/test_camshift.cpp int code = cvtest::TS::OK; cvtest 444 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, "Invalid CvConnectedComp was returned by cvMeanShift\n" ); cvtest 445 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_INVALID_OUTPUT; cvtest 455 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, "Incorrect CvBox2D position (=(%.1f, %.1f), should be (%.1f, %.1f))\n", cvtest 457 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 468 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, cvtest 472 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 478 modules/video/test/test_camshift.cpp ts->printf( cvtest::TS::LOG, cvtest 480 modules/video/test/test_camshift.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 48 modules/video/test/test_ecc.cpp class CV_ECC_BaseTest : public cvtest::BaseTest cvtest 120 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 149 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 154 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 170 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 195 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 224 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 229 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 246 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 269 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 299 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 304 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 322 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 345 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 374 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 379 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 394 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 417 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 457 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 462 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 477 modules/video/test/test_ecc.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 55 modules/video/test/test_estimaterigid.cpp class CV_RigidTransform_Test : public cvtest::BaseTest cvtest 112 modules/video/test/test_estimaterigid.cpp double thres = 0.1*cvtest::norm(aff, NORM_L2); cvtest 113 modules/video/test/test_estimaterigid.cpp double d = cvtest::norm(aff_est, aff, NORM_L2); cvtest 123 modules/video/test/test_estimaterigid.cpp nB = cvtest::norm(B, NORM_L2); cvtest 127 modules/video/test/test_estimaterigid.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 128 modules/video/test/test_estimaterigid.cpp ts->printf( cvtest::TS::LOG, "Threshold = %f, norm of difference = %f", thres, d ); cvtest 142 modules/video/test/test_estimaterigid.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 157 modules/video/test/test_estimaterigid.cpp if (cvtest::norm(aff_est, aff, NORM_INF) > thres) cvtest 159 modules/video/test/test_estimaterigid.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 160 modules/video/test/test_estimaterigid.cpp ts->printf( cvtest::TS::LOG, "Threshold = %f, norm of difference = %f", thres, cvtest 161 modules/video/test/test_estimaterigid.cpp cvtest::norm(aff_est, aff, NORM_INF) ); cvtest 170 modules/video/test/test_estimaterigid.cpp cvtest::DefaultRngAuto dra; cvtest 178 modules/video/test/test_estimaterigid.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 47 modules/video/test/test_kalman.cpp class CV_KalmanTest : public cvtest::BaseTest cvtest 62 modules/video/test/test_kalman.cpp int code = cvtest::TS::OK; cvtest 94 modules/video/test/test_kalman.cpp cvtest::randUni(rng, _Sample, cvScalarAll(-max_init), cvScalarAll(max_init)); cvtest 106 modules/video/test/test_kalman.cpp Temp->data.fl[j]= (float)(t+(cvtest::randReal(rng)*2-1)*max_noise); cvtest 113 modules/video/test/test_kalman.cpp code = cvtest::cmpEps2( ts, _Sample, _state_post, EPSILON, false, "The final estimated state" ); cvtest 47 modules/video/test/test_optflowpyrlk.cpp class CV_OptFlowPyrLKTest : public cvtest::BaseTest cvtest 60 modules/video/test/test_optflowpyrlk.cpp int code = cvtest::TS::OK; cvtest 87 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, "could not read %s\n", filename ); cvtest 88 modules/video/test/test_optflowpyrlk.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 97 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, "could not read %s\n", filename ); cvtest 98 modules/video/test/test_optflowpyrlk.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 105 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, "the loaded matrices of points are not valid\n" ); cvtest 106 modules/video/test/test_optflowpyrlk.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 125 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, "could not read %s\n", filename ); cvtest 126 modules/video/test/test_optflowpyrlk.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 137 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, "could not read %s\n", filename ); cvtest 138 modules/video/test/test_optflowpyrlk.cpp code = cvtest::TS::FAIL_MISSING_TEST_DATA; cvtest 179 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, "The algorithm lost the point #%d\n", i ); cvtest 180 modules/video/test/test_optflowpyrlk.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 188 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, cvtest 190 modules/video/test/test_optflowpyrlk.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 196 modules/video/test/test_optflowpyrlk.cpp ts->printf( cvtest::TS::LOG, "Maximum tracking error is too big (=%g) at %d\n", max_err, merr_i ); cvtest 197 modules/video/test/test_optflowpyrlk.cpp code = cvtest::TS::FAIL_BAD_ACCURACY; cvtest 218 modules/video/test/test_optflowpyrlk.cpp std::string path = cvtest::TS::ptr()->get_data_path() + "../cv/shared/lena.png"; cvtest 47 modules/video/test/test_tvl1optflow.cpp using namespace cvtest; cvtest 52 modules/videoio/test/test_basic_props.cpp using namespace cvtest; cvtest 65 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str()); cvtest 73 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); cvtest 74 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n"); cvtest 75 modules/videoio/test/test_basic_props.cpp TS::ptr()->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 89 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str()); cvtest 97 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); cvtest 98 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n"); cvtest 99 modules/videoio/test/test_basic_props.cpp TS::ptr()->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 116 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str()); cvtest 124 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); cvtest 125 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n"); cvtest 126 modules/videoio/test/test_basic_props.cpp TS::ptr()->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 139 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str()); cvtest 147 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); cvtest 148 modules/videoio/test/test_basic_props.cpp TS::ptr()->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n"); cvtest 149 modules/videoio/test/test_basic_props.cpp TS::ptr()->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 55 modules/videoio/test/test_ffmpeg.cpp class CV_FFmpegWriteBigVideoTest : public cvtest::BaseTest cvtest 179 modules/videoio/test/test_ffmpeg.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 186 modules/videoio/test/test_ffmpeg.cpp class CV_FFmpegReadImageTest : public cvtest::BaseTest cvtest 202 modules/videoio/test/test_ffmpeg.cpp double diff = cvtest::norm(img0, img, CV_C); cvtest 209 modules/videoio/test/test_ffmpeg.cpp ts->set_failed_test_info(cvtest::TS::OK); cvtest 338 modules/videoio/test/test_ffmpeg.cpp ReadImageAndTest(const std::vector<VideoCapture*>& _readers, cvtest::TS* _ts) : cvtest 368 modules/videoio/test/test_ffmpeg.cpp double psnr = cvtest::PSNR(actual, reference); cvtest 371 modules/videoio/test/test_ffmpeg.cpp #define SUM cvtest::TS::SUMMARY cvtest 376 modules/videoio/test/test_ffmpeg.cpp ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); cvtest 394 modules/videoio/test/test_ffmpeg.cpp cvtest::TS* ts; cvtest 402 modules/videoio/test/test_ffmpeg.cpp cvtest::TS* ts = cvtest::TS::ptr(); cvtest 50 modules/videoio/test/test_framecount.cpp class CV_FramecountTest: public cvtest::BaseTest cvtest 66 modules/videoio/test/test_framecount.cpp ts->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str()); cvtest 77 modules/videoio/test/test_framecount.cpp ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); cvtest 78 modules/videoio/test/test_framecount.cpp ts->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n"); cvtest 79 modules/videoio/test/test_framecount.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 96 modules/videoio/test/test_framecount.cpp ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n"\ cvtest 105 modules/videoio/test/test_framecount.cpp ts->printf(cvtest::TS::LOG, "FAILED\n"); cvtest 106 modules/videoio/test/test_framecount.cpp ts->printf(cvtest::TS::LOG, "\nError: actual frame count and returned frame count are not matched.\n"); cvtest 107 modules/videoio/test/test_framecount.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 50 modules/videoio/test/test_positioning.cpp class CV_VideoPositioningTest: public cvtest::BaseTest cvtest 123 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str()); cvtest 138 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "\nReading video file in %s...\n", file_path.c_str()); cvtest 144 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str()); cvtest 145 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n"); cvtest 146 modules/videoio/test/test_positioning.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); cvtest 182 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\n", i+1, ext[i].c_str()); cvtest 187 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "\nIteration: %d\n", j); cvtest 189 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "Required pos: %d\nReturned pos: %d\n", idx.at(j), val); cvtest 190 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "Error: required and returned positions are not matched.\n"); cvtest 191 modules/videoio/test/test_positioning.cpp ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); cvtest 206 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "\nSuccessfull experiments: %d (%d%%)\n", n-failed_videos, 100*(n-failed_videos)/n); cvtest 207 modules/videoio/test/test_positioning.cpp ts->printf(cvtest::TS::LOG, "Failed experiments: %d (%d%%)\n", failed_videos, 100*failed_videos/n); cvtest 104 modules/videoio/test/test_video_io.cpp class CV_VideoIOTest : public cvtest::BaseTest cvtest 108 modules/videoio/test/test_video_io.cpp void VideoTest (const string& dir, const cvtest::VideoFormat& fmt); cvtest 110 modules/videoio/test/test_video_io.cpp void SpecificVideoTest (const string& dir, const cvtest::VideoFormat& fmt); cvtest 203 modules/videoio/test/test_video_io.cpp double psnr = cvtest::PSNR(loaded, image); cvtest 240 modules/videoio/test/test_video_io.cpp psnr = cvtest::PSNR(buf_loaded, image); cvtest 256 modules/videoio/test/test_video_io.cpp void CV_VideoIOTest::VideoTest(const string& dir, const cvtest::VideoFormat& fmt) cvtest 259 modules/videoio/test/test_video_io.cpp string tmp_name = cv::tempfile((cvtest::fourccToString(fmt.fourcc) + "." + fmt.ext).c_str()); cvtest 289 modules/videoio/test/test_video_io.cpp cvtest::fourccToString(fmt.fourcc).c_str()); cvtest 321 modules/videoio/test/test_video_io.cpp double psnr = cvtest::PSNR(img1, img); cvtest 376 modules/videoio/test/test_video_io.cpp double psnr = cvtest::PSNR(loaded, image); cvtest 413 modules/videoio/test/test_video_io.cpp psnr = cvtest::PSNR(buf_loaded, image); cvtest 428 modules/videoio/test/test_video_io.cpp void CV_VideoIOTest::SpecificVideoTest(const string& dir, const cvtest::VideoFormat& fmt) cvtest 433 modules/videoio/test/test_video_io.cpp string fourcc_str = cvtest::fourccToString(fourcc); cvtest 532 modules/videoio/test/test_video_io.cpp double psnr = cvtest::PSNR(img, frame); cvtest 560 modules/videoio/test/test_video_io.cpp const cvtest::VideoFormat& fmt = cvtest::g_specific_fmt_list[i]; cvtest 571 modules/videoio/test/test_video_io.cpp const cvtest::VideoFormat& fmt = cvtest::g_specific_fmt_list[i]; cvtest 49 modules/videoio/test/test_video_pos.cpp class CV_PositioningTest : public cvtest::BaseTest cvtest 66 modules/videoio/test/test_video_pos.cpp string getFilename(const cvtest::VideoFormat& fmt) cvtest 68 modules/videoio/test/test_video_pos.cpp return cv::tempfile((cvtest::fourccToString(fmt.fourcc) + "." + fmt.ext).c_str()); cvtest 71 modules/videoio/test/test_video_pos.cpp bool CreateTestVideo(const cvtest::VideoFormat& fmt, int framecount, string filename) cvtest 91 modules/videoio/test/test_video_pos.cpp const cvtest::VideoFormat& fmt = cvtest::g_specific_fmt_list[testcase]; cvtest 161 modules/videoio/test/test_video_pos.cpp double err = cvtest::PSNR(img, img0); cvtest 87 modules/viz/test/test_precomp.hpp return Path::combine(cvtest::TS::ptr()->get_data_path(), "dragon.ply"); cvtest 182 modules/viz/test/tests_simple.cpp Mat lena = imread(Path::combine(cvtest::TS::ptr()->get_data_path(), "lena.png")); cvtest 316 modules/viz/test/tests_simple.cpp Mat lena = imread(Path::combine(cvtest::TS::ptr()->get_data_path(), "lena.png")); cvtest 339 modules/viz/test/tests_simple.cpp Mat lena = imread(Path::combine(cvtest::TS::ptr()->get_data_path(), "lena.png")); cvtest 372 modules/viz/test/tests_simple.cpp Mat lena = imread(Path::combine(cvtest::TS::ptr()->get_data_path(), "lena.png")); cvtest 385 modules/viz/test/tests_simple.cpp Mat lena = imread(Path::combine(cvtest::TS::ptr()->get_data_path(), "lena.png"));