A hole-filling step utilizing the NI-IMAQ morphological operation
(fill hole library function) is then applied to the binary
image to fill these spots and create a temporary image. The
temporary image is then subtracted by the original binary
image to isolate the small spots as shown in Fig. 9d. In effect,
this process also removes the outer contour of the fruit in
Fig. 9c and only small spots within the fruit remain in the
image