Color Matching: Rozdiel medzi revíziami
Zo stránky SensorWiki
Vytvorená stránka „center“ |
Bez shrnutí editace |
||
Riadok 1: | Riadok 1: | ||
[[Súbor:ColorMatchDemoExe.png|center]] | [[Súbor:ColorMatchDemoExe.png|center]] | ||
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". |
Aktuálna revízia z 12:25, 19. marec 2013
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".