Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Yamaneko, you use

void HOGDescriptor::detectMultiScale(const Mat& img, vector<Rect>& foundLocations,double hitThreshold, Size winStride, Size padding, double scale0, double finalThreshold, bool useMeanshiftGrouping)

But there is another function with the same parameters and an additional vector containing the weight for each detected rectangle (see HOGDescriptor source file))

void HOGDescriptor::detectMultiScale(const Mat& img, vector<Rect>& foundLocations, vector<double>& foundWeights, double hitThreshold, Size winStride, Size padding, double scale0, double finalThreshold, bool useMeanshiftGrouping)