Commit 76febce9 authored by Manuel Grizonnet's avatar Manuel Grizonnet

WRG: this 'if' clause does not guard

parent ba586206
......@@ -792,8 +792,14 @@ LineSegmentDetector<TInputImage, TPrecision>
l = (static_cast<double>((*it)[0]) - x) * dx + (static_cast<double>((*it)[1]) - y) * dy;
w = -(static_cast<double>((*it)[0]) - x) * dy + (static_cast<double>((*it)[1]) - y) * dx;
if (l < l_min) l_min = l; if (l > l_max) l_max = l;
if (w < w_min) w_min = w; if (w > w_max) w_max = w;
if (l < l_min)
l_min = l;
if (l > l_max)
l_max = l;
if (w < w_min)
w_min = w;
if (w > w_max)
w_max = w;
sum_l[static_cast < int > (vcl_floor(l) + 0.5) + Diagonal] += static_cast<MagnitudePixelType>(weight);
sum_w[static_cast < int > (vcl_floor(w) + 0.5) + Diagonal] += static_cast<MagnitudePixelType>(weight);
......
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