[comp.graphics] References sought on finding "close

garyb@hcx1.SSD.HARRIS.COM (06/01/88)

> I'm looking for references to techniques that do a resonable at finding
> the "closest" match to a desired color, given a pool of candidate colors
> from which to select.  
> 

For a simple solution, try converting your RGB coordinates into HSV
(HUE, Saturation, Value) coordinates, and minimizing the euclidean
distance in the this HSV space.  The results are far more appealing
than minimizing the RGB distances.  Chapter 17, section 17.4.4 of J.D.
Foley, A. Van Dam, "Fundamentals of Interactive Computer Graphics"
provides algorithms for converting RGB to HSV and HSV to RGB.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Gary Barton                             |  ..from the home of the HCX..    |
| Software Development                    | Harris Computer Systems Division |
+-----------------------------------------+----------------------------------+
| garyb@ssd.harris.com                    | 2101 W. Cypress Creek Rd.        |
| {uunet,cbosgd,mit-eddie}!hcx1!garyb     | Ft. Lauderdale. FL 33309         |
| {mtune,gatech}!codas!novavax!hcx1!garyb | (305) 974-1700                   |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++