Home | History | Annotate | Download | only in test

Lines Matching refs:cvtest

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) %
170 center.x = cvtest::randInt(rng) % size.width;
171 center.y = cvtest::randInt(rng) % size.height;
173 axes.width = (cvtest::randInt(rng) %
175 axes.height = (cvtest::randInt(rng) %
209 int i, code = cvtest::BaseTest::prepare_test_case( test_case_idx );
216 blob_count = cvRound(exp(cvtest::randReal(rng)*max_log_blob_count*CV_LOG2));
218 img_size.width = cvRound(exp((cvtest::randReal(rng)*
220 img_size.height = cvRound(exp((cvtest::randReal(rng)*
223 approx_method = cvtest::randInt( rng ) % 4 + 1;
224 retr_mode = cvtest::randInt( rng ) % 4;
270 int code = cvtest::TS::OK;
276 ts->printf( cvtest::TS::LOG, "The number of contours retrieved with different "
280 code = cvtest::TS::FAIL_INVALID_OUTPUT;
289 code = cvtest::cmpEps2(ts, _img[0], _img[3], 0, true, "Comparing original image with the map of filled contours" );
294 code = cvtest::cmpEps2( ts, _img[1], _img[2], 0, true,
317 ts->printf( cvtest::TS::LOG,
321 code = cvtest::TS::FAIL_INVALID_OUTPUT;
338 ts->printf( cvtest::TS::LOG,
341 code = cvtest::TS::FAIL_INVALID_OUTPUT;
350 ts->printf( cvtest::TS::LOG,
353 code = cvtest::TS::FAIL_INVALID_OUTPUT;
367 ts->printf( cvtest::TS::LOG,
370 code = cvtest::TS::FAIL_INVALID_OUTPUT;