The box filter algorithm for color images works exclusively in HSI, it
needs hue and saturation for each pixel. Other algorithms need only the
luminance component as you said. I need separate functions for H, S and I,
since sometimes you need some of them and not all. But for some spaces
there is no escape from calculating one in order to calculate another.

There is no escape from this I am afraid, color image processing is
completely different than grayscale image processing. Sometimes you can
apply the same thing to all channels in RGB image as you would for a
grayscale image, but the results are usually bad. So you want to go to
other space such as HSI and get the job done.

I am talking about "conversion" only internally. The input image is still
RGB and the output image is RGB.

You mean it is complicated because conversion formulas are expensive, or
lack of agreement in the whole color spaces thing? I mean, there is a lot
of confusion about the color spaces, different names for things, different
standards, I guess that is what you mean?
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to