Re: global color histogram
The formula at the bottom of your post builds a 6 bit number from the value returned by getRGB() method.
2^6 is 64
If you OR together the & bit values you should get: 0b111111 from: 0x30 | 0x0c | 0x03
Re: global color histogram
but on which base ,for different RGB value it return same integer y??
Re: global color histogram
Quote:
but on which base ,for different RGB value it return same integer y?
Yes it will return the same value for many colors. That is what the histogram is for. To display the number of different colors that had the same value in the 0-63 range produced by the formula.
Re: global color histogram
okk i got it.will it reduce the quality of image color or the accuracy of histogram??
if i use this same technique for 8 bit 0-255,because java use 8 bit to represent color code like
(image.getRGB(x,y)>> 16 & 0xff) | (image.getRGB(x,y) >> 8 & 0xff) | (image.getRGB(x,y)& 0xff)
which is better ,6 bit or 8 bit ??
Re: global color histogram
Quote:
will it reduce the quality of image color or the accuracy of histogram??
I don't know how it effects the colors. The histogram counts what it is supposed to count. Whoever devised the bit sampling technique should be asked what the histogram is suppose to be counting.
Re: global color histogram