I need to create an application that can count pixels by color and generate a report grouping the counts .
I have found an open source application - ImageMagic , that can generate a file with Hex code of color and pixel .
I now need to group by shades of similar color and report -- in particular, I need to report all shades of yellow and all shades of brown.
I am using a small Java code and compareTo method to do this but the challenge is setting up the shade range Does the Hex code follow a standard pattern so that I can define a range ? I understand picking "shades of color" is subjective but I need to know if I start from white and move all the way to end of yellow, does the hex code follow an order ?