Operácie

Color Matching

Zo stránky SensorWiki

Verzia z 12:25, 19. marec 2013, ktorú vytvoril Balogh (diskusia | príspevky)
(rozdiel) ← Staršia verzia | Aktuálna úprava (rozdiel) | Novšia verzia → (rozdiel)


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".