In general, the morphological filtering process can remove
signal noise or small grains such as seeds from X-ray images
of fruit. As shown in Fig. 10a, the X-ray image of a guava contains
several infestation sites, and the result of segmentation
after adaptive thresholding without morphological filtering is
shown in Fig. 10b. By removing small spots using morphological
filtering with three iterations, small spots of noise and
granular seeds were successfully removed leaving the segmented
infestation site as shown in Fig. 10c