HomeSort by relevance Sort by last modified time
    Searched refs:cvtest (Results 1 - 25 of 241) sorted by null

1 2 3 4 5 6 7 8 910

  /external/opencv3/modules/videoio/test/
test_framecount.cpp 50 class CV_FramecountTest: public cvtest::BaseTest
66 ts->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str());
77 ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str());
78 ts->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n");
79 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA);
96 ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n"\
105 ts->printf(cvtest::TS::LOG, "FAILED\n");
106 ts->printf(cvtest::TS::LOG, "\nError: actual frame count and returned frame count are not matched.\n");
107 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT);
test_basic_props.cpp 52 using namespace cvtest;
65 TS::ptr()->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str());
73 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());
74 TS::ptr()->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n");
75 TS::ptr()->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA);
89 TS::ptr()->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str());
97 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());
98 TS::ptr()->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n");
99 TS::ptr()->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA);
116 TS::ptr()->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str())
    [all...]
test_positioning.cpp 50 class CV_VideoPositioningTest: public cvtest::BaseTest
123 ts->printf(cvtest::TS::LOG, "\n\nSource files directory: %s\n", (src_dir+"video/").c_str());
138 ts->printf(cvtest::TS::LOG, "\nReading video file in %s...\n", file_path.c_str());
144 ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\nFAILED\n\n", i+1, ext[i].c_str());
145 ts->printf(cvtest::TS::LOG, "Error: cannot read source video file.\n");
146 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA);
168 ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\n", i+1, ext[i].c_str());
171 ts->printf(cvtest::TS::LOG, "\nIteration: %d\n\nError: cannot read a frame with index %d.\n", j, idx.at(j));
172 ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION);
182 ts->printf(cvtest::TS::LOG, "\nFile information (video %d): \n\nName: big_buck_bunny.%s\n", i+1, ext[i].c_str())
    [all...]
  /external/opencv3/modules/imgproc/test/
test_connectedcomponents.cpp 49 class CV_ConnectedComponentsTest : public cvtest::BaseTest
69 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA );
82 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT );
94 if (0 != cvtest::norm(labelImage > 0, exp > 0, NORM_INF))
96 ts->set_failed_test_info( cvtest::TS::FAIL_MISMATCH );
99 if (nLabels != cvtest::norm(labelImage, NORM_INF)+1)
101 ts->set_failed_test_info( cvtest::TS::FAIL_MISMATCH );
104 ts->set_failed_test_info(cvtest::TS::OK);
test_emd.cpp 49 class CV_EMDTest : public cvtest::BaseTest
64 int code = cvtest::TS::OK;
84 ts->printf( cvtest::TS::LOG,
86 code = cvtest::TS::FAIL_BAD_ACCURACY;
test_pc.cpp 48 namespace cvtest namespace
52 class CV_PhaseCorrelatorTest : public cvtest::ArrayTest
64 ts->set_failed_test_info(cvtest::TS::OK);
83 ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY );
test_contours.cpp 48 class CV_FindContourTest : public cvtest::BaseTest
106 cvtest::BaseTest::clear();
118 int code = cvtest::BaseTest::read_params( fs );
129 min_blob_size = cvtest::clipInt( min_blob_size, 1, 100 );
130 max_blob_size = cvtest::clipInt( max_blob_size, 1, 100 );
135 max_log_blob_count = cvtest::clipInt( max_log_blob_count, 1, 10 );
137 min_log_img_size = cvtest::clipInt( min_log_img_size, 1, 10 );
138 max_log_img_size = cvtest::clipInt( max_log_img_size, 1, 10 );
167 int angle = cvtest::randInt(rng) % 180;
168 int brightness = cvtest::randInt(rng)
    [all...]
  /external/opencv3/modules/photo/test/
test_inpaint.cpp 49 class CV_InpaintTest : public cvtest::BaseTest
73 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA );
94 double n1 = cvtest::norm(diff1.reshape(1), NORM_INF, inv_mask.reshape(1));
95 double n2 = cvtest::norm(diff2.reshape(1), NORM_INF, inv_mask.reshape(1));
99 ts->set_failed_test_info( cvtest::TS::FAIL_MISMATCH );
106 n1 = cvtest::norm(diff1.reshape(1), NORM_INF, mask.reshape(1));
107 n2 = cvtest::norm(diff2.reshape(1), NORM_INF, mask.reshape(1));
112 ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY );
116 ts->set_failed_test_info(cvtest::TS::OK);
test_npr.cpp 54 string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/";
65 double error = cvtest::norm(reference, result, NORM_L1);
71 string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/";
82 double error = cvtest::norm(reference, result, NORM_L1);
89 string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/";
100 double error = cvtest::norm(reference, result, NORM_L1);
106 string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/";
121 double color_pencil_error = cvtest::norm(color_pencil_reference, color_pencil_result, NORM_L1);
127 string folder = string(cvtest::TS::ptr()->get_data_path()) + "npr/";
138 double stylized_error = cvtest::norm(stylized_reference, result, NORM_L1)
    [all...]
test_decolor.cpp 54 string folder = string(cvtest::TS::ptr()->get_data_path()) + "decolor/";
66 double error_grayscale = cvtest::norm(reference_grayscale, grayscale, NORM_L1);
70 double error_boost = cvtest::norm(reference_boost, color_boost, NORM_L1);
  /external/opencv3/modules/ml/test/
test_gbttest.cpp 13 class CV_GBTreesTest : public cvtest::BaseTest
80 int code = cvtest::TS::OK;
96 ts->printf( cvtest::TS::LOG, "Bad test_num value in CV_GBTreesTest::TestTrainPredict(..) function." );
97 return cvtest::TS::FAIL_BAD_ARG_CHECK;
109 ts->printf( cvtest::TS::LOG, "File reading error." );
110 return cvtest::TS::FAIL_INVALID_TEST_DATA;
142 ts->printf( cvtest::TS::LOG, "Model training was failed.");
143 return cvtest::TS::FAIL_INVALID_OUTPUT;
156 return cvtest::TS::FAIL_GENERIC;
167 ts->printf( cvtest::TS::LOG, "Test error is out of range:\n
    [all...]
test_lr.cpp 84 class CV_LRTest : public cvtest::BaseTest
112 int test_code = cvtest::TS::OK;
116 ts->printf(cvtest::TS::LOG, "Bad prediction labels\n" );
117 test_code = cvtest::TS::FAIL_INVALID_OUTPUT;
121 ts->printf(cvtest::TS::LOG, "Bad accuracy of (%f)\n", error);
122 test_code = cvtest::TS::FAIL_BAD_ACCURACY;
137 class CV_LRTest_SaveLoad : public cvtest::BaseTest
148 int code = cvtest::TS::OK;
175 ts->printf(cvtest::TS::LOG, "Crash in write method.\n" );
176 ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION)
    [all...]
test_mltests.cpp 54 int code = cvtest::TS::OK;
57 if (code == cvtest::TS::OK)
107 ts->printf( cvtest::TS::LOG, "Test case = %d; test error = %f; mean error = %f (diff=%f), %d*sigma = %f\n",
111 ts->printf( cvtest::TS::LOG, "abs(%f - %f) > %f - OUT OF RANGE!\n", curErr, mean, coeff*sigma, coeff );
112 return cvtest::TS::FAIL_BAD_ACCURACY;
115 ts->printf( cvtest::TS::LOG, ".\n" );
120 ts->printf( cvtest::TS::LOG, "validation info is not suitable" );
121 return cvtest::TS::FAIL_INVALID_TEST_DATA;
123 return cvtest::TS::OK;
  /external/opencv3/modules/calib3d/test/
test_undistort.cpp 49 class CV_DefaultNewCameraMatrixTest : public cvtest::ArrayTest
85 cvtest::ArrayTest::get_test_array_types_and_sizes(test_case_idx,sizes,types);
87 matrix_type = types[INPUT][0] = types[OUTPUT][0]= types[REF_OUTPUT][0] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F;
93 int code = cvtest::ArrayTest::prepare_test_case( test_case_idx );
100 img_size.width = cvtest::randInt(rng) % MAX_X + 1;
101 img_size.height = cvtest::randInt(rng) % MAX_Y + 1;
103 center_principal_point = ((cvtest::randInt(rng) % 2)!=0);
107 double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7;
110 a[2] = (img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5;
111 a[5] = (img_size.height - 1)*0.5 + cvtest::randReal(rng)*10 - 5
    [all...]
test_cornerssubpix.cpp 50 class CV_ChessboardSubpixelTest : public cvtest::BaseTest
122 int code = cvtest::TS::OK;
137 const int pattern_width = min_pattern_size + cvtest::randInt(rng) % (max_pattern_size - min_pattern_size);
138 const int pattern_height = min_pattern_size + cvtest::randInt(rng) % (max_pattern_size - min_pattern_size);
161 ts->printf(cvtest::TS::LOG, "Warning: chessboard was not detected! Writing image to test.png\n");
162 ts->printf(cvtest::TS::LOG, "Size = %d, %d\n", pattern_size.width, pattern_size.height);
163 ts->printf(cvtest::TS::LOG, "Intrinsic params: fx = %f, fy = %f, cx = %f, cy = %f\n",
166 ts->printf(cvtest::TS::LOG, "Distortion matrix: %f, %f, %f, %f, %f\n",
180 ts->printf(cvtest::TS::LOG, "findChessboardCorners returns invalid corner coordinates!\n");
181 code = cvtest::TS::FAIL_INVALID_OUTPUT
    [all...]
test_chesscorners_timing.cpp 46 class CV_ChessboardDetectorTimingTest : public cvtest::BaseTest
62 int code = cvtest::TS::OK;
86 ts->printf( cvtest::TS::LOG, "chessboard_timing_list.dat can not be readed or is not valid" );
87 code = cvtest::TS::FAIL_MISSING_TEST_DATA;
115 ts->printf( cvtest::TS::LOG, "one of chessboard images can't be read: %s\n", filename.c_str() );
118 code = cvtest::TS::FAIL_MISSING_TEST_DATA;
124 ts->printf(cvtest::TS::LOG, "%s: chessboard %d:\n", imgname, is_chessboard);
149 ts->printf( cvtest::TS::LOG, "Error: chessboard was %sdetected in the image %s\n",
151 code = cvtest::TS::FAIL_INVALID_OUTPUT;
156 ts->printf( cvtest::TS::LOG, "Warning: results differ cvCheckChessboard %d, cvFindChessboardCorners %d\n"
    [all...]
  /external/opencv3/modules/flann/test/
test_lshtable_badarg.cpp 46 class CV_LshTableBadArgTest : public cvtest::BadArgTest
70 Size featuresSize = cvtest::randomSize(rng, 10.0);
71 caller.features = cvtest::randomMat(rng, featuresSize, CV_8UC1, 0, 255, false);
82 caller.key_size += cvtest::randInt(rng) % 100;
86 ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH);
88 ts->set_failed_test_info(cvtest::TS::OK);
  /external/opencv3/modules/features2d/test/
test_detectors_regression.cpp 56 class CV_FeatureDetectorTest : public cvtest::BaseTest
86 ts->printf( cvtest::TS::LOG, "detect() on empty image must not generate exception (1).\n" );
87 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT );
92 ts->printf( cvtest::TS::LOG, "detect() on empty image must return empty keypoints vector (1).\n" );
93 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT );
106 ts->printf( cvtest::TS::LOG, "detect() on empty image vector must not generate exception (2).\n" );
107 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT );
135 ts->printf( cvtest::TS::LOG, "Bad keypoints count ratio (validCount = %d, calcCount = %d).\n",
137 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT );
163 ts->printf( cvtest::TS::LOG, "badPointCount = %d; validPointCount = %d; calcPointCount = %d\n"
    [all...]
test_descriptors_regression.cpp 97 class CV_DescriptorExtractorTest : public cvtest::BaseTest
117 ts->printf(cvtest::TS::LOG, "Valid and computed descriptors matrices must have the same size and type.\n");
118 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA );
140 ts->set_failed_test_info( cvtest::TS::FAIL_BAD_ACCURACY );
142 ts->printf(cvtest::TS::LOG, ss.str().c_str() );
160 ts->printf( cvtest::TS::LOG, "compute() on empty image and empty keypoints must not generate exception (1).\n");
161 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA );
171 ts->printf( cvtest::TS::LOG, "compute() on nonempty image and empty keypoints must not generate exception (1).\n");
172 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_TEST_DATA );
185 ts->printf( cvtest::TS::LOG, "compute() on empty images and empty keypoints collection must not generate exception (2 (…)
    [all...]
test_keypoints.cpp 56 class CV_FeatureDetectorKeypointsTest : public cvtest::BaseTest
72 ts->printf(cvtest::TS::LOG, "Image %s can not be read.\n", imgFilename.c_str());
73 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA);
82 ts->printf(cvtest::TS::LOG, "Detector can't find keypoints in image.\n");
83 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT);
94 ts->printf(cvtest::TS::LOG, "KeyPoint::pt is out of image (x=%f, y=%f).\n", kp.pt.x, kp.pt.y);
95 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT);
101 ts->printf(cvtest::TS::LOG, "KeyPoint::size is not positive (%f).\n", kp.size);
102 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT);
108 ts->printf(cvtest::TS::LOG, "KeyPoint::angle is out of range [0, 360). It's %f.\n", kp.angle)
    [all...]
  /external/opencv3/modules/core/test/
test_rotatedrect.cpp 47 class Core_RotatedRectConstructorTest : public cvtest::BaseTest
68 cvtest::BaseTest::prepare_test_case( test_case_idx );
79 if( cvtest::randInt(rng) % 2 == 0 ) d = -d;
101 return cvtest::TS::OK;
102 ts->printf( cvtest::TS::LOG, "RotatedRect end points don't match those supplied in constructor");
103 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT );
104 return cvtest::TS::OK;
test_io.cpp 16 idx[j] = cvtest::randInt(rng) % sz[j];
17 double val = cvtest::randReal(rng)*(b - a) + a;
83 class Core_IOTest : public cvtest::BaseTest
110 int test_int = (int)cvtest::randInt(rng);
111 double test_real = (cvtest::randInt(rng)%2?1:-1)*exp(cvtest::randReal(rng)*18-9);
114 int depth = cvtest::randInt(rng) % (CV_64F+1);
115 int cn = cvtest::randInt(rng) % 4 + 1;
116 Mat test_mat(cvtest::randInt(rng)%30+1, cvtest::randInt(rng)%30+1, CV_MAKETYPE(depth, cn))
    [all...]
  /external/opencv3/modules/video/test/
test_estimaterigid.cpp 55 class CV_RigidTransform_Test : public cvtest::BaseTest
112 double thres = 0.1*cvtest::norm(aff, NORM_L2);
113 double d = cvtest::norm(aff_est, aff, NORM_L2);
123 nB = cvtest::norm(B, NORM_L2);
127 ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY);
128 ts->printf( cvtest::TS::LOG, "Threshold = %f, norm of difference = %f", thres, d );
142 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA);
157 if (cvtest::norm(aff_est, aff, NORM_INF) > thres)
159 ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY);
160 ts->printf( cvtest::TS::LOG, "Threshold = %f, norm of difference = %f", thres
    [all...]
test_accum.cpp 48 class CV_AccumBaseTest : public cvtest::ArrayTest
75 int depth = cvtest::randInt(rng) % 3, cn = cvtest::randInt(rng) & 1 ? 3 : 1;
76 int accdepth = std::max((int)(cvtest::randInt(rng) % 2 + 1), depth);
78 cvtest::ArrayTest::get_test_array_types_and_sizes( test_case_idx, sizes, types );
88 alpha = cvtest::randReal(rng);
122 cvtest::add( src, 1, dst, 1, cvScalarAll(0.), temp, dst.type() );
123 cvtest::copy( temp, dst, mask );
156 cvtest::convert( src, temp, dst.type() );
157 cvtest::multiply( temp, temp, temp, 1 )
    [all...]
test_optflowpyrlk.cpp 47 class CV_OptFlowPyrLKTest : public cvtest::BaseTest
60 int code = cvtest::TS::OK;
87 ts->printf( cvtest::TS::LOG, "could not read %s\n", filename );
88 code = cvtest::TS::FAIL_MISSING_TEST_DATA;
97 ts->printf( cvtest::TS::LOG, "could not read %s\n", filename );
98 code = cvtest::TS::FAIL_MISSING_TEST_DATA;
105 ts->printf( cvtest::TS::LOG, "the loaded matrices of points are not valid\n" );
106 code = cvtest::TS::FAIL_MISSING_TEST_DATA;
125 ts->printf( cvtest::TS::LOG, "could not read %s\n", filename );
126 code = cvtest::TS::FAIL_MISSING_TEST_DATA
    [all...]

Completed in 390 milliseconds

1 2 3 4 5 6 7 8 910