From 696972bf8ee0cc48902c16e3e94c8ae3b9069761 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 28 Sep 2016 13:38:02 +0300 Subject: [PATCH] ocl: update Canny test threshold OpenCL Device: - Intel(R) HD Graphics (OpenCL 2.0: r2.0.54425) --- modules/imgproc/test/ocl/test_canny.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imgproc/test/ocl/test_canny.cpp b/modules/imgproc/test/ocl/test_canny.cpp index ca436a4f67..454198ac34 100644 --- a/modules/imgproc/test/ocl/test_canny.cpp +++ b/modules/imgproc/test/ocl/test_canny.cpp @@ -99,7 +99,7 @@ OCL_TEST_P(Canny, Accuracy) generateTestData(); const double low_thresh = 50.0, high_thresh = 100.0; - double eps = 12e-3; + double eps = 0.03; OCL_OFF(cv::Canny(src_roi, dst_roi, low_thresh, high_thresh, aperture_size, useL2gradient)); OCL_ON(cv::Canny(usrc_roi, udst_roi, low_thresh, high_thresh, aperture_size, useL2gradient)); @@ -113,7 +113,7 @@ OCL_TEST_P(Canny, AccuracyCustomGradient) generateTestData(); const double low_thresh = 50.0, high_thresh = 100.0; - double eps = 12e-3; + double eps = 0.03; OCL_OFF(cv::Canny(src_roi, dst_roi, low_thresh, high_thresh, aperture_size, useL2gradient)); OCL_ON(