Skip to content

How to visualize an "ab" slice of CIE Lab with corresponding "L"? #858

Answered by KelSolaar
hminle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hminle,

We do not have anything readily available for that and while it is not easy to do that for arbitrary gamuts as it requires mesh geometry intersection, it is trivial to do for RGB colourspaces:

from colour.colorimetry import CCS_ILLUMINANTS, SDS_ILLUMINANTS
from colour.geometry import primitive_cube
from colour.models import Lab_to_XYZ, XYZ_to_Lab, XYZ_to_sRGB, sRGB_to_XYZ
from colour.plotting import XYZ_to_plotting_colourspace, artist
from colour.utilities import as_int, full, orient, tstack
from colour.volume import is_within_visible_spectrum, solid_RoschMacAdam

illuminant = 'D65'
sd_n = SDS_ILLUMINANTS[illuminant]
xy_n = CCS_ILLUMINANTS['CIE 1931 2 Degree Standard Observer']…

Replies: 3 comments 22 replies

Comment options

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

@hminle
Comment options

@hminle
Comment options

@Myndex
Comment options

@hminle
Comment options

Answer selected by hminle
Comment options

You must be logged in to vote
0 replies
Comment options

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

@hminle
Comment options

@hminle
Comment options

@KelSolaar
Comment options

@hminle
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
3 participants