Hi all,
I am trying to figure out what the best way of determining which pixel in an array is the closest to some query color. For example, if I have an array of colors and some query color(100,100,5), I'd like to find the index of the element in my array which has the closest (by subtraction or euclidean distance) to that query. Preferably there is a fast way of doing this which doesn't involve looping.
1