Commit ee2d7a1f authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed warnings for iOS

parent 451972f3
...@@ -512,7 +512,7 @@ CV_INLINE void ...@@ -512,7 +512,7 @@ CV_INLINE void
{ {
for (long x = 0; x < _src.cols; x++) for (long x = 0; x < _src.cols; x++)
{ {
const uchar* data = _src.ptr(y, x); const uchar* data = _src.ptr((int)y, (int)x);
//update model+ background subtract //update model+ background subtract
uchar include=0; uchar include=0;
...@@ -539,15 +539,15 @@ CV_INLINE void ...@@ -539,15 +539,15 @@ CV_INLINE void
{ {
case 0: case 0:
//foreground //foreground
*_dst.ptr(y, x) = 255; *_dst.ptr((int)y, (int)x) = 255;
break; break;
case 1: case 1:
//background //background
*_dst.ptr(y, x) = 0; *_dst.ptr((int)y, (int)x) = 0;
break; break;
case 2: case 2:
//shadow //shadow
*_dst.ptr(y, x) = nShadowDetection; *_dst.ptr((int)y, (int)x) = nShadowDetection;
break; break;
} }
i++; 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