colour-science / colour

Colour Science for Python
https://www.colour-science.org
BSD 3-Clause "New" or "Revised" License
2.03k stars 257 forks source link

How to convert Rec.709 color space to Sony S-Gammut color space? #1207

Closed alyfreym closed 9 months ago

alyfreym commented 9 months ago

Ideally I want Convert Rec.709 Color space with Rec.709-A Gamma <---> to Sony S-Gamut color space with Sony S-Log Gamma

KelSolaar commented 9 months ago

Hi @alyfreym,

You could use the colour.RGB_to_RGB definition to convert the colours directly or the colour.matrix_RGB_to_RGB definition to compute the matrix that converts between both.

You could also use our little app here: https://www.colour-science.org:8010/apps/rgb_colourspace_transformation_matrix?input-colourspace=ITU-R+BT.709&output-colourspace=S-Gamut&chromatic-adaptation-transform=CAT02&formatter=str&decimals=10

Cheers,

Thomas

Edit: Oh, I replied from my email and only saw then that you edited to add S-Log. The colour.RGB_to_RGB definition should do it, you would need to enable the apply_cctf_decoding and apply_cctf_encoding parameters.

alyfreym commented 9 months ago

Thanks!