Skip to content

Commit

Permalink
Merge pull request opencv#17943 from tomoaki0705:fixPolarToCartRounding
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Jul 27, 2020
2 parents 5bfa43f + 19646ad commit 1e18004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cudaarithm/test/test_element_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2778,7 +2778,7 @@ CUDA_TEST_P(PolarToCart, Accuracy)
{
cv::Mat magnitude = randomMat(size, type);
cv::Mat angle = randomMat(size, type);
const double tol = (type == CV_32FC1 ? 1.6e-4 : 1e-4) * (angleInDegrees ? 1.0 : 19.0);
const double tol = (type == CV_32FC1 ? 1.6e-4 : 1e-4) * (angleInDegrees ? 1.0 : 19.47);

cv::cuda::GpuMat x = createMat(size, type, useRoi);
cv::cuda::GpuMat y = createMat(size, type, useRoi);
Expand Down

0 comments on commit 1e18004

Please sign in to comment.