|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
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.
DetailsDetails
- BottomHatTransform works with binary, grayscale, and other images.
- BottomHatTransform works with 3D as well as 2D images, and also with data arrays of any rank.
- The structuring element ker is a matrix containing
s and
s. - BottomHatTransform automatically pads structuring elements to have odd dimensions.
- BottomHatTransform[image, r] is equivalent to BottomHatTransform[image, BoxMatrix[r]].
- If multiple image channels are present, BottomHatTransform operates on each of them separately.
- BottomHatTransform preserves regions smaller than the structuring element whose channel values are smaller than their surroundings.
ExamplesExamplesopen allclose all
Basic Examples (5)Basic Examples (5)
Use bottom-hat transform to highlight the dark spots on a cheetah:
| In[1]:= |
| Out[1]= | ![]() |
Bottom-hat transform applied to a color photo:
| In[1]:= |
| Out[1]= | ![]() |
Extract small, dark regions from a color image:
| In[1]:= |
| Out[1]= | ![]() |
Use a disk-shaped structuring element to extract washers that are smaller than the specified size:
| In[1]:= |
| Out[1]= | ![]() |
The bottom-hat transform effectively inverts high-frequency regions:
| In[1]:= |
| Out[1]= | ![]() |
New in 7 | Last modified in 9
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »










