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



_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to