beuzel
04 April 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
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