Commit 9e21f064 authored by Maria Dimashova's avatar Maria Dimashova

replaced M_PI by CV_PI

parent 084c640d
......@@ -470,7 +470,7 @@ double CvEM::calcLikelihood( const cv::Mat &input_sample ) const
// probability = (2*pi)^(-dims/2)*exp( -0.5 * cur )
cvConvertScale( &expo, &expo, -0.5 );
double factor = -double(dims)/2.0 * log(2.0*M_PI);
double factor = -double(dims)/2.0 * log(2.0*CV_PI);
cvAndS( &expo, cvScalar(factor), &expo );
// Calculate the log-likelihood of the given sample -
......@@ -551,7 +551,7 @@ CvEM::predict( const CvMat* _sample, CvMat* _probs ) const
// probability = (2*pi)^(-dims/2)*exp( -0.5 * cur )
cvConvertScale( &expo, &expo, -0.5 );
double factor = -double(dims)/2.0 * log(2.0*M_PI);
double factor = -double(dims)/2.0 * log(2.0*CV_PI);
cvAndS( &expo, cvScalar(factor), &expo );
// Calculate the posterior probability of each component
......
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