Hey there!
I'm playing around with OCIO to do a transform from linear to CIELAB space
to do an unsharpen. I've got a config.ocio that gives me the expected
results in Nuke just fine, however using oiio and ocio, I'm getting a very
different result.
CIELAB does use negative numbers, so I'm wondering if there is some issue
with those in oiio? I convert to lab, and then write out an exr, and there
aren't any negative values in there...
My code looks something like this:
ImageBuf* workingImage = new ImageBuf("my_rgba_image.tif");
ColorProcessor* unsharpSpaceProcessor =
config.createColorProcessor("linear", "CIE Lab D65");
ImageBuf labSpaceBuffer;
bool result = ImageBufAlgo::colorconvert(labSpaceBuffer,
*workingImage, unsharpSpaceProcessor, true);
labSpaceBuffer.write("test_out.exr")
Using Nuke on the source image, I expect to see negative values in the
green and blue channels, but looking at test_out.exr they seem to be
clamped at 0.
config.ocio looks something like this (based on linear), but since it looks
correct in Nuke, and not in my code, I must be doing something wrong!
https://gist.github.com/andrewhwood/badb691a5c940af670fe3b9f8cfb189f
any ideas?
thanks!
Andrew
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org