Commit e287dea9 authored by Andrey Pavlenko's avatar Andrey Pavlenko

fixing build warnings

parent 81721d0d
...@@ -643,7 +643,7 @@ void smoothBorder(Mat& img, const Scalar& color, int delta) ...@@ -643,7 +643,7 @@ void smoothBorder(Mat& img, const Scalar& color, int delta)
p = img.ptr(r, c); p = img.ptr(r, c);
for(i=0; i<ch; i++) s[i] = p[i]; for(i=0; i<ch; i++) s[i] = p[i];
s = s * k1 + color * k2; s = s * k1 + color * k2;
for(i=0; i<ch; i++) p[i] = s[i]; for(i=0; i<ch; i++) p[i] = uchar(s[i]);
} }
for(c=0; c<n; c++) for(c=0; c<n; c++)
{ {
...@@ -651,7 +651,7 @@ void smoothBorder(Mat& img, const Scalar& color, int delta) ...@@ -651,7 +651,7 @@ void smoothBorder(Mat& img, const Scalar& color, int delta)
p = img.ptr(r, img.cols-c-1); p = img.ptr(r, img.cols-c-1);
for(i=0; i<ch; i++) s[i] = p[i]; for(i=0; i<ch; i++) s[i] = p[i];
s = s * k1 + color * k2; s = s * k1 + color * k2;
for(i=0; i<ch; i++) p[i] = s[i]; for(i=0; i<ch; i++) p[i] = uchar(s[i]);
} }
} }
} }
......
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