fix uninitialized magnitude channel bug

This commit is contained in:
marina.kolpakova 2013-03-01 23:40:32 +04:00
parent 12d23aae02
commit 445f39a4a3

View File

@ -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;