Skip to content

Why is colour.sd_to_XYZ definition returning different results from the instrument? #1283

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

You must be logged in to vote

Hello,

Without seeing how the instrument does the integration, it is hard to know where the difference is coming from. It seems like though that the spectral distribution is given without spectral bandpass correction, try this and it should get you closer:

import colour
import numpy as np

cmfs = colour.MSDS_CMFS["CIE 1964 10 Degree Standard Observer"]
illuminant = colour.SDS_ILLUMINANTS["D65"]
shape = colour.SpectralShape(400, 700, 10)
obs = colour.CCS_ILLUMINANTS["CIE 1964 10 Degree Standard Observer"]["D65"]
data = np.array(
    [
        45.42,
        73.35,
        85.37,
        88.85,
        89.43,
        89.86,
        90.33,
        90.61,
        90.88,
        91.15,
        9…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@honhon199
Comment options

Answer selected by honhon199
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