设为首页 加入收藏

TOP

OpenCV中的 HOGDescriptor 类(二)
2014-11-23 17:38:01 来源: 作者: 【 】 浏览:99
Tags:OpenCV HOGDescriptor
Size()) const;


CV_WRAP static vector getDefaultPeopleDetector();
CV_WRAP static vector getDaimlerPeopleDetector();


CV_PROP Size winSize;
CV_PROP Size blockSize;
CV_PROP Size blockStride;
CV_PROP Size cellSize;
CV_PROP int nbins;
CV_PROP int derivAperture;
CV_PROP double winSigma;
CV_PROP int histogramNormType;
CV_PROP double L2HysThreshold;
CV_PROP bool gammaCorrection;
CV_PROP vector svmDetector;
CV_PROP int nlevels;



// eva luate specified ROI and return confidence value for each location
void detectROI(const cv::Mat& img, const vector &locations,
CV_OUT std::vector& foundLocations, CV_OUT std::vector& confidences,
double hitThreshold = 0, cv::Size winStride = Size(),
cv::Size padding = Size()) const;


// eva luate specified ROI and return confidence value for each location in multiple scales
void detectMultiScaleROI(const cv::Mat& img,
CV_OUT std::vector& foundLocations,
std::vector& locations,
double hitThreshold = 0,
int groupThreshold = 0) const;


// read/parse Dalal's alt model file
void readALTModel(std::string modelfile);
};


默认构造函数的几个参数:


winSize(64,128), blockSize(16,16), blockStride(8,8),
cellSize(8,8), nbins(9), derivAperture(1), winSigma(-1),
histogramNormType(HOGDescriptor::L2Hys), L2HysThreshold(0.2), gammaCorrection(true),
nlevels(HOGDescriptor::DEFAULT_NLEVELS)


winSize : 窗口的大小
blockSize :块的大小
cellSize: 胞元的大小
nbins: 方向bin的个数 nBins表示在一个胞元(cell)中统计梯度的方向数目,例如nBins=9时,在一个胞元内统计9个方向的梯度直方图,每个方向为360/9=40度。


--------------------------------------分割线 --------------------------------------


--------------------------------------分割线 --------------------------------------


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Win8下Visual Studio编译报“无法.. 下一篇用OpenCV调整视频大小

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: