imtophat
Top-hat filtering
Description
Examples
Input Arguments
Output Arguments
Tips
If the dimensionality of the image
I
is greater than the dimensionality of the structuring element, then theimtophat
function applies the same morphological opening to all planes along the higher dimensions.You can use this behavior to perform top-hat filtering 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,
imtophat
determines the center element ofnhood
byfloor((size(nhood)+1)/2)
.