| Help me out with Counting Colours Hi Everyone,
This had wandering over me for weeks now. Any help is very much appreciated.
I am working on image processing stuff now. I am now required to count the number of unique colours in an image so that I can identify few prominent colours to be my threshold values for further image segmentation.
I am working this out with both Java and JIU (Java Imaging Utilities) and able to get each pixel R,G and B value out. My problem is how can I put these values together and compare each pixel colour to another so that one which is similar will be ignored. I know that I can make use of Set as well as ArrayList even Vector in order to count these colours but not sure which one is better to use.
Hope u guys can help me out with this :-)
inox |