Lines Matching refs:ts

140             ts->printf(cvtest::TS::LOG, "start  reading big image\n");  in run()
141 Mat img = imread(string(ts->get_data_path()) + "readwrite/read.png"); in run()
142 ts->printf(cvtest::TS::LOG, "finish reading big image\n"); in run()
143 if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
144 ts->printf(cvtest::TS::LOG, "start writing big image\n"); in run()
146 ts->printf(cvtest::TS::LOG, "finish writing big image\n"); in run()
150 ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); in run()
152 ts->set_failed_test_info(cvtest::TS::OK); in run()
190ts->printf(ts->LOG, "image type depth:%d channels:%d ext: %s\n", CV_8U, num_channels, ext_from… in run()
195 ts->printf(ts->LOG, "writing image : %s\n", img_path.c_str()); in run()
198 ts->printf(ts->LOG, "reading test image : %s\n", img_path.c_str()); in run()
201 if (img_test.empty()) ts->set_failed_test_info(ts->FAIL_MISMATCH); in run()
210 ts->printf(ts->LOG, "norm = %f \n", n); in run()
211 ts->set_failed_test_info(ts->FAIL_MISMATCH); in run()
220ts->printf(ts->LOG, "image type depth:%d channels:%d ext: %s\n", CV_8U, num_channels, ".jpg"); in run()
226 ts->printf(ts->LOG, "reading test image : %s\n", filename.c_str()); in run()
229 if (img_test.empty()) ts->set_failed_test_info(ts->FAIL_MISMATCH); in run()
240 ts->printf(ts->LOG, "norm = %f > expected = %f \n", n, expected); in run()
241 ts->set_failed_test_info(ts->FAIL_MISMATCH); in run()
251ts->printf(ts->LOG, "image type depth:%d channels:%d ext: %s\n", CV_16U, num_channels, ".tiff"… in run()
257 ts->printf(ts->LOG, "reading test image : %s\n", filename.c_str()); in run()
260 if (img_test.empty()) ts->set_failed_test_info(ts->FAIL_MISMATCH); in run()
264 ts->printf(ts->LOG, "img : %d ; %d \n", img.channels(), img.depth()); in run()
265ts->printf(ts->LOG, "img_test : %d ; %d \n", img_test.channels(), img_test.depth()); in run()
273 ts->printf(ts->LOG, "norm = %f \n", n); in run()
274 ts->set_failed_test_info(ts->FAIL_MISMATCH); in run()
282 ts->printf(ts->LOG, "Exception: %s\n" , e.what()); in run()
283 ts->set_failed_test_info(ts->FAIL_MISMATCH); in run()
295 Mat rle = imread(string(ts->get_data_path()) + "readwrite/rle8.bmp"); in run()
296 Mat bmp = imread(string(ts->get_data_path()) + "readwrite/ordinary.bmp"); in run()
298 ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); in run()
302 ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); in run()
304 ts->set_failed_test_info(cvtest::TS::OK); in run()
338 ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); in run()
340 ts->set_failed_test_info(cvtest::TS::OK); in run()
348 cvtest::TS& ts = *cvtest::TS::ptr(); in TEST() local
353 string imgName = string(ts.get_data_path()) + "/../cv/shared/lena.png"; in TEST()
381 Mat img = imread(string(ts->get_data_path()) + "readwrite/color_palette_alpha.png",-1); in run()
382 if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
401 img = imread(string(ts->get_data_path()) + "readwrite/color_palette_no_alpha.png",-1); in run()
402 if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
419 img = imread(string(ts->get_data_path()) + "readwrite/color_palette_alpha.png",1); in run()
420 if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
437 img = imread(string(ts->get_data_path()) + "readwrite/color_palette_no_alpha.png",1); in run()
438 if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
456 ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); in run()
458 ts->set_failed_test_info(cvtest::TS::OK); in run()
476 cvtest::TS& ts = *cvtest::TS::ptr(); in TEST() local
477 string input = string(ts.get_data_path()) + "../cv/shared/lena.png"; in TEST()
500 cvtest::TS& ts = *cvtest::TS::ptr(); in TEST() local
501 string input = string(ts.get_data_path()) + "../cv/shared/lena.png"; in TEST()
524 cvtest::TS& ts = *cvtest::TS::ptr(); in TEST() local
525 string input = string(ts.get_data_path()) + "../cv/shared/lena.png"; in TEST()
651 cv::Mat img = imread(string(ts->get_data_path()) + "readwrite/non_tiled.tif",-1); in run()
652 if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
654 cv::Mat tiled8 = imread(string(ts->get_data_path()) + "readwrite/tiled_8.tif", -1); in run()
655 if (tiled8.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
658 cv::Mat tiled16 = imread(string(ts->get_data_path()) + "readwrite/tiled_16.tif", -1); in run()
659 if (tiled16.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
667 ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); in run()
669 ts->set_failed_test_info(cvtest::TS::OK); in run()
754 cvtest::TS& ts = *cvtest::TS::ptr(); in TEST() local
755 string input = string(ts.get_data_path()) + "../cv/shared/lena.png"; in TEST()
803 cvtest::TS& ts = *cvtest::TS::ptr(); in TEST() local
804 std::string input = std::string(ts.get_data_path()) + "../cv/shared/lena.png"; in TEST()
827 cvtest::TS& ts = *cvtest::TS::ptr(); in TEST() local
828 std::string input = std::string(ts.get_data_path()) + "../cv/shared/lena.png"; in TEST()