Updated by Marina Kolpakova over 12 years ago
The source:modules/objdetect/src/hog.cpp. source file: modules/objdetect/src/hog.cpp.
The problem is that: in the function:
<code class="cpp"><pre>
void HOGDescriptor::detect(const Mat& img,
vector<Point>& hits, vector<double>& weights, double hitThreshold,
Size winStride, Size padding, const vector<Point>& locations) const
</pre></code>
"weights.clear()" should be added in it. In the current version(2.4.2), this function is called by HOGDescriptor::detectMultiScale and the weights are wrongly updated.
The problem is that: in the function:
<code class="cpp"><pre>
void HOGDescriptor::detect(const Mat& img,
vector<Point>& hits, vector<double>& weights, double hitThreshold,
Size winStride, Size padding, const vector<Point>& locations) const
</pre></code>
"weights.clear()" should be added in it. In the current version(2.4.2), this function is called by HOGDescriptor::detectMultiScale and the weights are wrongly updated.