Skip to content

A question about "Tristimulus Values Conversion" #721

Answered by KelSolaar
Edwardlin-zlt asked this question in Q&A
Discussion options

You must be logged in to vote

@Edwardlin-zlt : I cannot see the code @jdvandenberg shared but in that very precise case you need to perform the interpolation beforehand. Assuming your colour.SpectralPowerDistribution (colour.SpectralDistribution in develop) class instance is called sd, you just need to do that:

sd.interpolate(colour.SpectralShape(interval=1))

Interpolation happens in-place and the default settings should work for typical spectral reflectance/transmittance/absorptance distributions.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KelSolaar
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #452 on January 16, 2021 22:47.