fix angle scaling
This commit is contained in:
parent
31a073ca66
commit
5fb9f48360
@ -63,7 +63,7 @@ void cv::SCascade::Channels::appendHogBins(const cv::Mat gray, std::vector<cv::M
|
|||||||
cv::Mat nmag;
|
cv::Mat nmag;
|
||||||
mag.convertTo(nmag, CV_8UC1);
|
mag.convertTo(nmag, CV_8UC1);
|
||||||
|
|
||||||
angle /= 60.f;
|
angle *= bins/360.f;
|
||||||
|
|
||||||
std::vector<cv::Mat> hist;
|
std::vector<cv::Mat> hist;
|
||||||
for (int bin = 0; bin < bins; ++bin)
|
for (int bin = 0; bin < bins; ++bin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user