Wolfram Computation Meets Knowledge

Extract Larger Objects from an Image

One application of TopHatTransform is to highlight objects of different sizes in an image.

    
The source image contains washers of various sizes:
In[1]:=
Click for copyable input
Smaller values will extract the smaller washers:
In[2]:=
Click for copyable input
Out[2]=
Use Manipulate to interactively set the value. Larger values for TopHatTransform will select progressively larger washers in the image:
In[3]:=
Click for copyable input
Out[3]=Play Animation