Commit b6029dab authored by Maksim Shabunin's avatar Maksim Shabunin

Merge pull request #274 from berak/patch-4

fix for issue #195
parents af63b7ab 4dcf02d6
...@@ -188,8 +188,8 @@ static void gradientHist(const cv::Mat &src, cv::Mat &magnitude, cv::Mat &histog ...@@ -188,8 +188,8 @@ static void gradientHist(const cv::Mat &src, cv::Mat &magnitude, cv::Mat &histog
magnitude.create( src.size(), cv::DataType<float>::type ); magnitude.create( src.size(), cv::DataType<float>::type );
phase.create( src.size(), cv::DataType<float>::type ); phase.create( src.size(), cv::DataType<float>::type );
histogram.create( cv::Size( cvRound(src.size().width/float(pSize)), histogram.create( cv::Size( cvCeil(src.size().width/float(pSize)),
cvRound(src.size().height/float(pSize)) ), cvCeil(src.size().height/float(pSize)) ),
CV_MAKETYPE(cv::DataType<float>::type, nBins) ); CV_MAKETYPE(cv::DataType<float>::type, nBins) );
histogram.setTo(0); histogram.setTo(0);
......
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