let the test pass on Jetson
authorTomoaki Teshima <tomoaki.teshima@gmail.com>
Sat, 25 Jul 2020 14:45:51 +0000 (23:45 +0900)
committerTomoaki Teshima <tomoaki.teshima@gmail.com>
Sat, 25 Jul 2020 14:45:51 +0000 (23:45 +0900)
modules/cudaarithm/test/test_element_operations.cpp

index 9d20046df9753da6511ecc02eb7654d06459c400..848ab5ce74006497df038ade0a52af76ad882ac3 100644 (file)
@@ -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);