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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s java and not C++ but it should be close enough to be easily reusable. Look for the
RGBtoHSBmethod in this page:http://www.docjar.com/html/api/java/awt/Color.java.html