Skip to content
Snippets Groups Projects
Commit 16072d9d authored by Julien Michel's avatar Julien Michel
Browse files

Correction d'erreur dans la windowedGaussianSinc

parent 2352c09e
No related branches found
No related tags found
No related merge requests found
...@@ -50,9 +50,9 @@ class GaussianWindowFunction ...@@ -50,9 +50,9 @@ class GaussianWindowFunction
{ {
double x = static_cast<double>(A); double x = static_cast<double>(A);
double px = M_PI * x; double px = M_PI * x;
double temp = exp( x * m_Factor ); double temp = vcl_exp( px*px * m_Factor);
return (x == 0.0) ? static_cast<TOutput>(temp) : static_cast<TOutput>(temp * vcl_sin(px) / px); return (x == 0.0) ? static_cast<TOutput>(temp) : static_cast<TOutput>(temp * vcl_sin(px) / px);
} }
private: private:
double m_Factor; double m_Factor;
unsigned int m_Radius; unsigned int m_Radius;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment