diff --git a/modules/imgproc/src/morph.cpp b/modules/imgproc/src/morph.cpp index 19636bc963..fa1f8acbf3 100644 --- a/modules/imgproc/src/morph.cpp +++ b/modules/imgproc/src/morph.cpp @@ -1234,7 +1234,7 @@ static bool IPPMorphOp(int op, InputArray _src, OutputArray _dst, return false; } } - for( x = 0; y < kernel.cols; x++ ) + for( x = 0; x < kernel.cols; x++ ) { if( kernel.at(anchor.y, x) != 0 ) continue;