Color Matching
Zo stránky SensorWiki
Color matching is done using a "minimax" approach in the RGB color space. In this method, the distance between two colors is the absolute value of the difference between the RGB component that differs most:
Di = max{|R-Ri|, |G-Gi|, |B-Bi|}
where R, G, and B are the red, green, and blue coordinates of the color being scanned; and Ri, Gi, and Bi are the coordinates of stored color . The color with the closest match is taken to be the one whose is the smallest, i.e. minimizing the maximum difference. Hence the term "minimax".