提交 445f39a4 编写于 作者: M marina.kolpakova

fix uninitialized magnitude channel bug

上级 12d23aae
......@@ -85,7 +85,7 @@ public:
cv::cartToPolar(df_dx, df_dy, mag, angle, true);
mag *= (1.f / (8 * sqrt(2.f)));
cv::Mat nmag;
cv::Mat nmag = channels(cv::Rect(0, h * (N_CHANNELS - 4), w, h));
mag.convertTo(nmag, CV_8UC1);
angle *= 6 / 360.f;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册