Problem of HSB - RGB Conversion
843807Apr 17 2003 — edited Dec 3 2005Hi,
I have used the method of RGBtoHSB() to convert RGB to HSB from the package of java.awt. But I found out the result is different from the conventional calculation approach.
As I know from the books, the Intensity(B) is calculated by (R+G+B)/3, where R,G and B are normalized.
But for the java's one, I noticed that the Intensity is calculated by max(R,G,B).
So, anyone notice and explain it?
Thanks
Kenneth