Background and external defects segmentation of navel orange based on mask and edge gray value compensation algorithm.