System object: vision.MorphologicalTopHat
Perform top-hat filtering on input image
Y = step(H,I)
Y = step(H,I,NHOOD)
Y = step(H,I) top-hat filters the input image, I , and returns the filtered image Y.
Y = step(H,I,NHOOD) filters the input image, I using the input NHOOD as the neighborhood when you set the NeighborhoodSource property to Input port. The object returns the filtered image in the output Y.
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.