fixed overflow for cv::norm NORM_L2

This commit is contained in:
Ilya Lavrenov
2014-01-01 23:46:19 +04:00
parent 1c3bfae212
commit 3a4d4080f4
4 changed files with 12 additions and 10 deletions

View File

@@ -1355,7 +1355,7 @@ OCL_TEST_P(ScaleAdd, Mat)
OCL_OFF(cv::scaleAdd(src1_roi, val[0], src2_roi, dst1_roi));
OCL_ON(cv::scaleAdd(usrc1_roi, val[0], usrc2_roi, udst1_roi));
Near(depth <= CV_32S ? 1 : 1e-6);
Near(depth <= CV_32S ? 1 : 1e-3);
}
}