mirror of
https://github.com/opencv/opencv.git
synced 2025-01-13 00:01:27 +08:00
increase epsilon for ResizeSameAsHost test
(cherry picked from commit 86e12b6074
)
This commit is contained in:
parent
975e40f1c0
commit
2205b2f5bc
@ -195,7 +195,8 @@ GPU_TEST_P(ResizeSameAsHost, Accuracy)
|
||||
cv::Mat dst_gold;
|
||||
cv::resize(src, dst_gold, cv::Size(), coeff, coeff, interpolation);
|
||||
|
||||
EXPECT_MAT_NEAR(dst_gold, dst, src.depth() == CV_32F ? 1e-2 : 1.0);
|
||||
// CPU test for cv::resize uses 16 as error threshold for CV_8U, we uses 4 as error threshold for CV_8U
|
||||
EXPECT_MAT_NEAR(dst_gold, dst, src.depth() == CV_32F ? 1e-2 : src.depth() == CV_8U ? 4.0 : 1.0);
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(GPU_ImgProc, ResizeSameAsHost, testing::Combine(
|
||||
|
Loading…
Reference in New Issue
Block a user