Re: Converting Primaries


Troy Sobotka <troy.s...@...>
 

Not sure if you got help here Markel.

I managed to craft up a spreadsheet that should work. Should being that it hasn't been tested extensively and that you'll need to manually make your OCIO stanzas from the provided entries. This isn't nearly as terrific as Colour, but I realize not everyone has Python handy, and a sort of "online calculator" probably couldn't hurt as I found myself doing the adaptation frequently.


I've input the values you gave along with ACES AP0 primaries. The chromatic adaptation is the Bradford CAT. The OpenColorIO stanzas appear on the final three lines. Those should be suitable to copypasta into a configuration as part of a group transform. Note that your source buffer will need to be linearized however appropriate for your encoded image.

Let me know if anyone spots a mistake.

With respect,
TJS

On Wed, Mar 7, 2018 at 8:26 AM Troy Sobotka <troy.s...@...> wrote:
Convert the xy coordinates to XYZ, with red being the first column, then green, then blue. That forms a 3x3 matrix for taking linearized RGB to the XYZ domain.

From there you would need to perform a chromatic adaptation via Bradford or CAT02 to the AP1 or AP0 white point required.

The final matrix would be from XYZ, achromatic point aligned, to AP1 or AP0 RGB, which are well documented.

With respect,
TJS


On Wed, Mar 7, 2018, 8:20 AM Markel <markel.j...@...> wrote:
Hello,

I just wanted to know if you would be able to help me convert these primaries into the proper matrix for use with ACES? They would be for an input. 

r: 0.6484 0.3309

g: 0.2302 0.7016

b: 0.1559 0.0661

w: 0.3217 0.3291

Thank You

--
- Markel Gregory

--
You received this message because you are subscribed to the Google Groups "OpenColorIO Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocio-dev+u...@....
For more options, visit https://groups.google.com/d/optout.

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