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?



1 Answer 1


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.

  • $\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, 2018 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, 2018 at 20:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .