I have read the Wikipedia article about converting from HSV to RGB, but I don’t understand. Why is each case option the way it is, and why they are ordered like that, if the order matters?
Share
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.
Wikipedia outlines a pretty bulletproof approach to coding it, so I’ll assume you’re confused about the implementation’s logic. You’re confused about this, correct?
If you look at the image adjacent to it, you will see why:
Each channel’s function is a piecewise function consisting of five linear segments. The cases account for each range of each distribution, namely the shaded regions of the above picture.