Last active
February 23, 2017 19:38
-
-
Save KelSolaar/41263036b3254d47c2e567e9cb614463 to your computer and use it in GitHub Desktop.
RIMM ROMM RGB D65 to ACEScg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using latest colour develop branch. | |
import colour | |
D65 = colour.ILLUMINANTS['cie_2_1931']['D65'] | |
P = colour.ROMM_RGB_COLOURSPACE.primaries | |
W = colour.ROMM_RGB_COLOURSPACE.whitepoint | |
P_a = colour.chromatically_adapted_primaries(P, W, D65) | |
ROMM_RGB_COLOURSPACE_D65 = colour.RGB_Colourspace( | |
'ROMM RGB D65', P_a, D65, 'D65') | |
# Conversion matrices are not given on instantiation thus their computation is forced. | |
ROMM_RGB_COLOURSPACE_D65.use_derived_transformation_matrices() | |
colour.RGB_to_RGB_matrix( | |
ROMM_RGB_COLOURSPACE_D65, | |
colour.ACES_CG_COLOURSPACE) | |
# array([[ 1.17118518, -0.04109626, -0.13008892], | |
# [-0.06489362, 1.06969485, -0.00480123], | |
# [ 0.00836888, -0.00222384, 0.99385496]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment