Commit 5fb9f483 authored by marina.kolpakova's avatar marina.kolpakova

fix angle scaling

parent 31a073ca
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment