Top-hat transform

Relation to Opening and Closing, and differences between top=white and bottom=black The top-hat transform: the opened image is subtracted from the original, and desired detail is obtained. The bottom-hat transform: the residual of a closing compared to the original image.

Synonyms
Hat transform
White top-hat transform
Black top-hat transform
Bottom-hat transform