Merge pull request #1723 from ilya-lavrenov:ocl_norm

This commit is contained in:
Andrey Pavlenko
2013-10-31 00:21:28 +04:00
committed by OpenCV Buildbot
2 changed files with 5 additions and 1 deletions

View File

@@ -688,7 +688,7 @@ double cv::ocl::norm(const oclMat &src1, const oclMat &src2, int normType)
break;
}
if (isRelative)
r = r / norm(src2, normType);
r = r / (norm(src2, normType) + DBL_EPSILON);
return r;
}