Skip to content

How to reproduce the CtCp section figure from Dolby Whitepaper? #1246

Answered by Zemax27
Zemax27 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm glad this helped to improve the code features.
I've checked your latest commits and I realized it could be done using the latest release.

from colour.models import RGB_COLOURSPACE_BT2020
from colour.utilities import is_trimesh_installed
from colour.geometry import primitive_cube
from colour import RGB_to_XYZ
from colour.plotting import section, CONSTANTS_COLOUR_STYLE
from colour import cctf_encoding


CONSTANTS_COLOUR_STYLE.colour.colourspace = RGB_COLOURSPACE_BT2020
RGB_COLOURSPACE_BT2020.cctf_encoding = lambda x: cctf_encoding(x / 1000)
vertices, faces, _outline = primitive_cube(1, 1, 1, 256, 256, 256)
XYZ_vertices = RGB_to_XYZ(
    (vertices["position"] + 0.5)*10000, RGB_COLOURSPAC…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@KelSolaar
Comment options

@KelSolaar
Comment options

@Zemax27
Comment options

Answer selected by Zemax27
@KelSolaar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants