Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import colour
- illuminant = colour.ILLUMINANTS['cie_2_1931']['D65']
- RGB = [[1.0, 0.0, 0.0],
- [0.0, 1.0, 0.0],
- [0.0, 0.0, 1.0],
- [1.0, 1.0, 0.0]]
- XYZ = colour.sRGB_to_XYZ(RGB)
- Luv = colour.XYZ_to_Luv(XYZ, illuminant)
- print(Luv)
- [[ 53.23288179 175.05983019 37.76179061]
- [ 87.73703347 -83.0685535 107.41996534]
- [ 32.30258667 -9.3957447 -130.35155921]
- [ 97.13824698 7.71536065 106.8097148 ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement