Apply color transformation on images containing a single channel


Mark Boorer <mark...@...>
 

Hi,

In my application, images are split into their separate channels, and operations are performed per channel. I have individual float arrays for each channel (obtained via openimageio), and I would like to perform a colorspace transformation to each, preferably without joining them together.
I noticed that the PackedImageDesc docs say it ignores channels > 4, is there an easy way in the c++ library to provide a float array, and specify which channel it contains to perform the transformation?

Something like:

OCIO::PackedImageDesc img(data, w, h, 1, "R");

Thanks,
Mark

Join ocio-dev@lists.aswf.io to automatically receive all group messages.