cv.erode - MATLAB File Help |
Erodes an image by using a specific structuring element
dst = cv.erode(src)
dst = cv.erode(src, 'OptionName',optionValue, ...)
uint8
, uint16
, int16
, single
or double
.src
.ones(3)
. Kernel can be created
using cv.getStructuringElementintmax(class(img))
for integer
types and realmax(class(img))
for floating-point types). See
cv.morphologyDefaultBorderValueThe function erodes the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the minimum is taken:
dst(x,y) = min_{(xp,yp): Element(xp,yp)!=0} src(x+xp, y+yp)
Erosion can be applied several (Iterations
) times. In case of
multi-channel images, each channel is processed independently.