Commit c373722a authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #448 from stoneyang:stone_port

parents 745d8194 4bf3832b
...@@ -47,6 +47,7 @@ namespace cv ...@@ -47,6 +47,7 @@ namespace cv
{ {
namespace dpm namespace dpm
{ {
Feature::Feature() Feature::Feature()
{ {
} }
...@@ -196,8 +197,8 @@ void Feature::computeHOG32D(const Mat &imageM, Mat &featM, const int sbin, const ...@@ -196,8 +197,8 @@ void Feature::computeHOG32D(const Mat &imageM, Mat &featM, const int sbin, const
// image size // image size
const Size imageSize = imageM.size(); const Size imageSize = imageM.size();
// block size // block size
int bW = (int)round((double)imageSize.width/(double)sbin); int bW = cvRound((double)imageSize.width/(double)sbin);
int bH = (int)round((double)imageSize.height/(double)sbin); int bH = cvRound((double)imageSize.height/(double)sbin);
const Size blockSize(bW, bH); const Size blockSize(bW, bH);
// size of HOG features // size of HOG features
int oW = max(blockSize.width-2, 0) + 2*pad_x; int oW = max(blockSize.width-2, 0) + 2*pad_x;
......
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