Commit 54081f26 authored by Anatoly Baksheev's avatar Anatoly Baksheev

fixed compiler error for win32

parent fff2160d
...@@ -308,7 +308,7 @@ Mat createCompressionMatrix( int rows, int cols, int distrType ) ...@@ -308,7 +308,7 @@ Mat createCompressionMatrix( int rows, int cols, int distrType )
} }
else if( distrType == CalonderClassifier::COMPRESS_DISTR_BERNOULLI ) else if( distrType == CalonderClassifier::COMPRESS_DISTR_BERNOULLI )
{ {
float par = (float)(1./sqrt(rows)); float par = (float)(1./sqrt((float)rows));
for( int y = 0; y < rows; y++ ) for( int y = 0; y < rows; y++ )
for( int x = 0; x < cols; x++ ) for( int x = 0; x < cols; x++ )
mtr.at<float>(y,x) = rng(2)==0 ? par : -par; mtr.at<float>(y,x) = rng(2)==0 ? par : -par;
......
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