Commit 8378dc6b authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1751 from vpisarev:avx2_fixes

parents 064603ad d1b8e38e
...@@ -847,7 +847,7 @@ struct SURFInvoker : ParallelLoopBody ...@@ -847,7 +847,7 @@ struct SURFInvoker : ParallelLoopBody
// unit vector is essential for contrast invariance // unit vector is essential for contrast invariance
vec = descriptors->ptr<float>(k); 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++ ) for( kk = 0; kk < dsize; kk++ )
vec[kk] *= scale; vec[kk] *= scale;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment