Hi,

What is the most efficient way for me to:

Here is the Background info,
I'm getting the hue info of every pixel in a BMP using a standard nested for loop to access the i,j pixel.
What I want to do:
Find out how many different Hue's I have (Obviously in the range of 0 and 360) and keep the value of the hue for the different hues in the image.

Thats it.

Additionally, I realise that I could have a very large range of hues since it is in float format. Thus, I would like to be able to classify hue's within 5 degrees as the same.

:S

Anyone have any ideas how I might do this???


Thanks