Possible Duplicate:
Algorithm to convert RGB to HSV and HSV to RGB?
I'm trying to find an algorithm (prefferabley represented in C++) that converts from RGBto HSB values so that I can process it accordingly. Anyone got any suggestions?
It's java and not C++ but it should be close enough to be easily reusable. Look for the RGBtoHSB
method in this page:
http://www.docjar.com/html/api/java/awt/Color.java.html
There's a number of colour algorithms demonstrated here, including the one you require which would be worth reading.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With