
208 The Image Processing Handbook, Seventh Edition
the inner circle, it produces no large differences between the values in the two neighborhoods
and the pixels are not altered.
The next chapters show the use of this same filter for a different purpose. Instead of remov-
ing extreme points as noise or dirt, the same operation can be used to find and keep points
of interest that are smaller than the crown of the hat and brighter or darker than the local
neighborhood. Figure4.49b illustrates this function of the top hat. Using the same settings
for neighborhood size but keeping the extreme values and suppressing those that do not have
a difference ...