imerode
Erode image
Description
Examples
Input Arguments
Output Arguments
More About
Tips
If the dimensionality of the image
I
is greater than the dimensionality of the structuring element, then theimerode
function applies the same morphological erosion to all planes along the higher dimensions.You can use this behavior to perform morphological erosion on RGB images. Specify a 2-D structuring element for RGB images to operate on each color channel separately.
When you specify a structuring element neighborhood,
imerode
determines the center element ofnhood
byfloor((size(nhood)+1)/2)
.imerode
automatically takes advantage of the decomposition of a structuring element object (if it exists). Also, when performing binary erosion with a structuring element object that has a decomposition,imerode
automatically uses binary image packing to speed up the erosion [3].
References
[1]
[2]
[3]