Merged revision(s) 8484 from trunk:
fixed some bugs in gpu module under Windows: * convertTo alignment error ........
This commit is contained in:
@@ -850,7 +850,7 @@ TEST_P(Divide_Array, WithScale)
|
||||
cv::Mat dst_gold;
|
||||
cv::divide(mat1, mat2, dst_gold, scale, depth.second);
|
||||
|
||||
EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0);
|
||||
EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-2 : 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -334,7 +334,7 @@ TEST_P(Laplacian, Accuracy)
|
||||
cv::Mat dst_gold;
|
||||
cv::Laplacian(src, dst_gold, -1, ksize.width);
|
||||
|
||||
EXPECT_MAT_NEAR(dst_gold, dst, 0.0);
|
||||
EXPECT_MAT_NEAR(dst_gold, dst, src.depth() < CV_32F ? 0.0 : 1e-3);
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(GPU_Filter, Laplacian, testing::Combine(
|
||||
|
Reference in New Issue
Block a user