Commit 3e033ad2 authored by Davis King's avatar Davis King

Fixed the gaussian() function used by the SURF code. It wasn't

computing a properly weighted Gaussian function.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403070
parent 6d432586
...@@ -29,7 +29,7 @@ namespace dlib ...@@ -29,7 +29,7 @@ namespace dlib
<< "\n\t sig: " << sig << "\n\t sig: " << sig
); );
const double pi = 3.1415926535898; const double pi = 3.1415926535898;
return 1.0/(sig*std::sqrt(2*pi)) * std::exp( -(x*x + y*y)/(2*sig*sig)); return 1.0/(sig*sig*2*pi) * std::exp( -(x*x + y*y)/(2*sig*sig));
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
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