PDA

View Full Version : RGB, HSV and HSL


beuzel
04-04-2007, 01:43 PM
Hello,
I am programming a user interface to modify images. In a dialog I
provide three sliders labeled Hue, Saturation and Value(Luminance). It
should work like the sliders in Adobe Photoshop Images->Adjustments-


>Hue/Saturation.


I do convert every pixel from RGB to HSV resp. HSL color space, do
some calculations and convert back to RGB. It already works but the
results are ok, but not perfect. The problem is the Saturation-slider.
I did some tests in photoshop with some pixel values. I need the
formula how exactly the slider value affects the S and V value. Can
somebody help?
Thank you

Chris

rdg
05-04-2007, 10:09 AM
RGB to HSV & HSV to RGB
http://www.cs.rit.edu/~ncs/color/t_convert.html

maybe this helps.

Georg

CGTalk Moderation
05-04-2007, 10:09 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.