System object: vision.MorphologicalErode
Perform morphological erosion on input
IE = step(H,I)
IE = step(H,I,NHOOD)
IE = step(H,I) performs morphological erosion on input image I and returns the eroded image IE.
IE = step(H,I,NHOOD) uses input NHOOD as the neighborhood when the NeighborhoodSource property is set to Input port.
Note: The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object™ issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.