fix angle scaling

This commit is contained in:
marina.kolpakova 2012-11-07 02:21:48 +04:00
parent 31a073ca66
commit 5fb9f48360

View File

@ -63,7 +63,7 @@ void cv::SCascade::Channels::appendHogBins(const cv::Mat gray, std::vector<cv::M
cv::Mat nmag;
mag.convertTo(nmag, CV_8UC1);
angle /= 60.f;
angle *= bins/360.f;
std::vector<cv::Mat> hist;
for (int bin = 0; bin < bins; ++bin)