cv.erode - MATLAB File Help
cv.erode

Erodes an image by using a specific structuring element

dst = cv.erode(src)
dst = cv.erode(src, 'OptionName',optionValue, ...)

Input

Output

Options

The 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.

See also