fixed iterations>1 case in morphological operations (bug #2348; thanks to Andrei Zaharescu for the fix)
This commit is contained in:
parent
f53d94c645
commit
9956c42804
@ -1166,8 +1166,8 @@ static void morphOp( int op, InputArray _src, OutputArray _dst,
|
||||
{
|
||||
anchor = Point(anchor.x*iterations, anchor.y*iterations);
|
||||
kernel = getStructuringElement(MORPH_RECT,
|
||||
Size(ksize.width + iterations*(ksize.width-1),
|
||||
ksize.height + iterations*(ksize.height-1)),
|
||||
Size(ksize.width + (iterations-1)*(ksize.width-1),
|
||||
ksize.height + (iterations-1)*(ksize.height-1)),
|
||||
anchor);
|
||||
iterations = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user