From c1aee0c312311ac1bc98ceaf126f537216484fb2 Mon Sep 17 00:00:00 2001 From: Michael Vukadinovic Date: Thu, 1 May 2014 11:52:49 -0700 Subject: [PATCH] Fixed bug in IPPMorphOp function when looping over elements of the morphology kernel. --- modules/imgproc/src/morph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/morph.cpp b/modules/imgproc/src/morph.cpp index 19636bc..fa1f8ac 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; -- 2.7.4