mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
fixed ocl tests for BlendLinear, BoxFilter, Integral
This commit is contained in:
parent
a05ce00a65
commit
8c2c3b54d9
@ -117,7 +117,7 @@ OCL_TEST_P(BlendLinear, Accuracy)
|
||||
OCL_OFF(cv::blendLinear(src1_roi, src2_roi, weights1_roi, weights2_roi, dst_roi));
|
||||
OCL_ON(cv::blendLinear(usrc1_roi, usrc2_roi, uweights1_roi, uweights2_roi, udst_roi));
|
||||
|
||||
Near(depth <= CV_32S ? 1.0 : 0.2);
|
||||
Near(depth <= CV_32S ? 1.0 : 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ OCL_TEST_P(BoxFilter, Mat)
|
||||
OCL_OFF(cv::boxFilter(src_roi, dst_roi, -1, ksize, anchor, normalize, borderType));
|
||||
OCL_ON(cv::boxFilter(usrc_roi, udst_roi, -1, ksize, anchor, normalize, borderType));
|
||||
|
||||
Near(depth <= CV_32S ? 1 : 1e-3);
|
||||
Near(depth <= CV_32S ? 1 : 3e-3);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -347,7 +347,7 @@ OCL_TEST_P(Integral, Mat2)
|
||||
OCL_ON(cv::integral(usrc_roi, udst_roi, udst2_roi, sdepth, sqdepth));
|
||||
|
||||
Near();
|
||||
sqdepth == CV_32F ? Near2(1e-6, true) : Near2();
|
||||
sqdepth == CV_32F ? Near2(2e-4, true) : Near2();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user