Abstract

In this chapter, a robust algorithm for segmenting food imagery from a background is presented using colour images. The proposed method has three steps: (i) computation of a high contrast grey value image from an optimal linear combination of the RGB colour components; (ii) estimation of a global threshold using a statistical approach; and (iii) a morphological operation in order to fill the possible holes presented in the segmented binary image. Although the suggested threshold separates the food image from the background very well, the user can modify it in order to achieve better results. The algorithm was implemented in Matlab and tested on 45 images taken under very different conditions. The segmentation performance was assessed by computing the area Az under the Receiver Operation Characteristic (ROC) curve. The achieved performance was Az = 0.9982.