S1.jpg original |
min(min(S1)) after erosion |
max(max(min(min(S1)))) followed by dilation |
S1 - max(max(min(min(S1)))) subtract and adjust |
Note how after the erosion steps the smaller bright spots are eliminated even after dilation. After subtraction the smaller spots are back but the larger areas have been removed. There is much to experiment with here in terms of the number and order of erosions and dilations. This is a very powerfull size discrimiator methodology. Contrast these results with the larger example in ip_2_3_3_difference.html.