[Image-SIG] Re: RGB conversion to CMKY gives strange results

Bob Klimek klimek at grc.nasa.gov
Fri Mar 11 23:44:04 CET 2005


Fredrik Lundh wrote:

>>is there any particular reason why conversions to HSV and/or HSL don't exist ?
>>    
>>
>for individual pixels, use the colorsys module in the standard Python library
>(but make sure to scale the values on the way in and out).
>
>for entire images, there's no good way to represent HSV/HSL/HSI/HSB etc
>in a 3*8-bit image memory (you usually want more resolution, especially for
>the H component).
>  
>
One way that would get around the resolution loss would be to have the 
result of HSI conversion go into a float image. And then if somebody 
wants to cut down on the resolution and convert it to an 8-bit image 
that would be their option.

Bob





More information about the Image-SIG mailing list