Top-hat transform
In mathematical morphology and digital image processing, a top-hat transform is an operation that extracts small elements and details from given images.[src] There exist two types of top-hat transform: the white top-hat transform is defined as the difference between the input image and its opening by some structuring element, while the black top-hat transform is defined dually as the difference between the closing and the input image.[src] Top-hat transforms are used for various image processing tasks, such as feature extraction, background equalization, image enhancement, and others.[src]
In mathematical morphology and digital image processing, a top-hat transform is an operation that extracts small elements and details from given images.[src] There exist two types of top-hat transform: the white top-hat transform is defined as the difference between the input image and its opening by some structuring element, while the black top-hat transform is defined dually as the difference between the closing and the input image.[src] Top-hat transforms are used for various image processing tasks, such as feature extraction, background equalization, image enhancement, and others.[src] ==Mathematical definitions== Let f:E\mapsto \mathbb{R} be a grayscale image, mapping points from a Euclidean space or discrete grid E (such as \mathbb{R}^2 or \mathbb{Z}^2 ) into the real line.[src] Let b(x) be a structuring element of grayscale.[src] Then, the white top-hat transform of f is given by: T_w(f)=f-f \circ b , where \circ denotes the opening operation.[src] The black top-hat transform of f (sometimes called the bottom-hat transform ) is given by: T_b(f)=f\bullet b-f , where \bullet is the closing operation.[src] ==Properties== The white top-hat transform returns an image, containing those "objects" or "elements" of an input image that: Are "smaller" than the structuring element (i.e., places where the structuring element does not fit in), and are brighter than their surroundings.[src] The black top-hat returns an image, containing the "objects" or "elements" that: Are "smaller" than the structuring element, and are darker than their surroundings.[src] The size, or width, of the elements that are extracted by the top-hat transforms can be controlled by the choice of the structuring element b .[src] The bigger the latter, the larger the elements extracted.[src] Both top-hat transforms are images that contain only non-negative values at all pixels.[src] One of its most important uses in image segmentation is to adjust nonuniform lighting conditions on an image and provide a better threshold value for separating objects.[src] ==References== Image Analysis and Mathematical Morphology by Jean Serra, (1982) Image Analysis and Mathematical Morphology, Volume 2: Theoretical Advances by Jean Serra, (1988) An Introduction to Morphological Image Processing by Edward R.[src] Dougherty, (1992) Hands-on Morphological Image Processing by Edward R.[src] Dougherty and R.[src] Lotufo, (2003) Digital Image Processing (Third Edition) by Rafael C.[src] Gonzalez and Richard E.[src] Woods, (2008)[src]
22 sentences · 22 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Top-hat transform." encyclopegia.org, 2025, https://encyclopegia.org/wiki/top-hat-transform. Accessed 26 November 2026.
Chicago
"Top-hat transform." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/top-hat-transform.
APA
encyclopegia.org. (2025). Top-hat transform. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/top-hat-transform
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON