1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

trying to fix the custom AVX2 builder test failures (false alarms)

This commit is contained in:
Vadim Pisarevsky
2018-09-06 00:32:56 +03:00
parent 386f52c7d6
commit d1b8e38e45

View File

@@ -847,7 +847,7 @@ struct SURFInvoker : ParallelLoopBody
// unit vector is essential for contrast invariance
vec = descriptors->ptr<float>(k);
float scale = (float)(1./(std::sqrt(square_mag) + DBL_EPSILON));
float scale = (float)(1./(std::sqrt(square_mag) + FLT_EPSILON));
for( kk = 0; kk < dsize; kk++ )
vec[kk] *= scale;
}