From: Tomoaki Teshima Date: Fri, 5 Jul 2019 02:22:22 +0000 (+0900) Subject: fix test failure of OCL_ImgProc/CvtColor8u.mRGBA2RGBA X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~171^2~15^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=594a95839cfd3be4d675741fec6a40025e03511d;p=platform%2Fupstream%2Fopencv.git fix test failure of OCL_ImgProc/CvtColor8u.mRGBA2RGBA --- diff --git a/modules/imgproc/test/ocl/test_color.cpp b/modules/imgproc/test/ocl/test_color.cpp index 0d08de0..bdbc6a9 100644 --- a/modules/imgproc/test/ocl/test_color.cpp +++ b/modules/imgproc/test/ocl/test_color.cpp @@ -294,14 +294,14 @@ OCL_TEST_P(CvtColor8u, GRAY2BGR555) { performTest(1, 2, CVTCODE(GRAY2BGR555)); } // RGBA <-> mRGBA -#ifdef HAVE_IPP +#if defined(HAVE_IPP) || defined(__arm__) #define IPP_EPS depth <= CV_32S ? 1 : 1e-3 #else #define IPP_EPS 1e-3 #endif OCL_TEST_P(CvtColor8u, RGBA2mRGBA) { performTest(4, 4, CVTCODE(RGBA2mRGBA), IPP_EPS); } -OCL_TEST_P(CvtColor8u, mRGBA2RGBA) { performTest(4, 4, CVTCODE(mRGBA2RGBA)); } +OCL_TEST_P(CvtColor8u, mRGBA2RGBA) { performTest(4, 4, CVTCODE(mRGBA2RGBA), IPP_EPS); } // RGB <-> Lab