mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
fix uninitialized magnitude channel bug
This commit is contained in:
parent
12d23aae02
commit
445f39a4a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user