diff --git a/modules/calib3d/src/stereobm.cpp b/modules/calib3d/src/stereobm.cpp index f16bfe633c214e49d5f4c2e01bf149c0ac22b03b..8e9cc016be9d52124448a83363579a6ecfc71c73 100644 --- a/modules/calib3d/src/stereobm.cpp +++ b/modules/calib3d/src/stereobm.cpp @@ -119,9 +119,8 @@ static void prefilterNorm( const Mat& src, Mat& dst, int winsize, int ftzero, uc const uchar* curr = sptr + srcstep*y; const uchar* next = sptr + srcstep*MIN(y+1,size.height-1); uchar* dptr = dst.ptr(y); - x = 0; - - for( ; x < size.width; x++ ) + + for( x = 0; x < size.width; x++ ) vsum[x] = (ushort)(vsum[x] + bottom[x] - top[x]); for( x = 0; x <= wsz2; x++ )