BottomHatTransform

BottomHatTransform[image,ker]

gives the morphological bottom-hat transform of image with respect to structuring element ker.

BottomHatTransform[image,r]

gives the bottom-hat transform with respect to a range-r square.

BottomHatTransform[data,]

applies a bottom-hat transform to an array of data.

Details

Examples

open allclose all

Basic Examples  (3)

Use bottom-hat transform to highlight the dark spots on a cheetah:

Bottom-hat transform applied to a color photo:

Bottom-hat transform applied to a 3D image:

Applications  (4)

Extract small, dark regions from a color image:

Use a disk-shaped structuring element to extract washers that are smaller than the specified size:

Extract thin, dark features:

Add the result to the original image to remove those thin features:

The bottom-hat transform effectively inverts high-frequency regions:

Introduced in 2008
 (7.0)
 |
Updated in 2012
 (9.0)