Skip to content

On Delta UV computation? #1119

Answered by tjdcs
blue-j asked this question in Q&A
Mar 14, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

We don't have this particular calculation, but that's ok because it's just an approximation function anyway. It's more accurate to do the correct conversions.

Convert from xy to UCS uv, and then compute uv to CCT with the defaut options.

from colour import xy_to_UCS_uv, uv_to_CCT

cct_duv = uv_to_CCT(xy_to_UCS_uv((0.3143, 0.3275)))
print(f"CCT: {cct_duv[0]:.1f}, ∆uv: {cct_duv[1]:.4f}")

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@blue-j
Comment options

@KelSolaar
Comment options

@blue-j
Comment options

@KelSolaar
Comment options

Answer selected by blue-j
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