Color measurement of food products using CIE L*a*b* and RGB color space.

Color of the food is the first parameter of quality evaluated by consumers. What is important is the acceptance of the product even before being consumed. Inspection of food products is done using machine vision, particularly analyzing and processing the images, where the parameters of each pixel on the surface of the recorded product must be known. Using different color spaces quantitative color value is obtained. Although there are many different color spaces, when it comes to food, the most frequently used is the CIE L*a*b* color space, due to its uniform color distribution and because its perception of color is closest to the one human eye. RGB color space, where a sensor in each pixel records the intensity of light in the red, green and blue spectrum, is also similar to human perception of colors and it is also frequently used. The problem with the L * a * b * scale is that commercial color-meters measure only a dozen of square centimetres of the product itself and the measurements are not representative for the most of heterogeneous materials. The aim of this paper is to present the analysis of images of chosen food products using the two color spaces. In each of the two color spaces, after determining the range of parameters appropriate to good quality products, the criteria for the discrimination of damaged products is defined and tested. The comparison of the applications of those criteria shows that, in the case of food, the transformation of RGB coordinates into the CIE L*a*b* color space makes it possible to achieve greater accuracy and improved calculation of appropriate color parameters.