With the adaptive segmentation procedure developed in this
research, we can effectively cope with the problem of grey
level gradient in the X-ray images due to shape or uneven
thickness of fruit for most of tested cases. However, the infestation
sites could not be segmented using the traditional
standard thresholding algorithm. Consequently, variations in
fruit characteristics and extent of infestation may be dealt
with by adjusting the iteration number of morphological filtering
or the sub-image size for adaptive thresholding