2
$\begingroup$

I know the math to convert sRGB and REC709 to linear, but does anyone know what is the (approximative?) math for filmic to linear?

Or is there a way to use OCIO configs in python to convert any picked color to be converted to linear, independently of the color profile you are using?

Thanks!

$\endgroup$
1
$\begingroup$

You can use the OpenColorIO Python library to transform a Filmic log encoded image back to scene referred linear.

The base log is a simple normalized log base 2 format, with ten stops down from middle grey and six and a half stops up.

$\endgroup$
  • $\begingroup$ Thank you for answering Troy. Sorry to ask for that, but do you have an example you could share? I'm trying to import PyOpenColorIO but that module doesn't seem to be accessible from an addon? $\endgroup$ – chafouin Apr 19 '18 at 19:12
  • $\begingroup$ Depends on your OS I suppose. You can compile it pretty easily, or install it via Homebrew or your Linux distribution. Easier for me once I know you have PyOpenColorIO working and what configuration we are using. $\endgroup$ – troy_s Apr 19 '18 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.