Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about XYZ to XYZ with difference illumination and degree? #482

Open
diuming opened this issue Mar 11, 2025 · 2 comments
Open

Question about XYZ to XYZ with difference illumination and degree? #482

diuming opened this issue Mar 11, 2025 · 2 comments

Comments

@diuming
Copy link

diuming commented Mar 11, 2025

Is it possible to convert XYZ(D50 2°) to XYZ(D65 10°) by calculating?

@mm2
Copy link
Owner

mm2 commented Mar 11, 2025

I think, in general, it is not possible.

XYZ for a reflective source is the sum on all bands of spectral reflectance's x Spectral power distribution of illuminant x Color matching functions.

Color matching functions are empirical curves obtained from human observers. They differ in using an aperture of 2º or 10º to see the colors. Obtained curves are alike but not same.

Image

So actually, if you have spectral data on the surface and the light, you can readily obtain XYZ on 2 and 10 degree as color matching functions are standard. But once you have the XYZ value, the spectral data is lost.

You could argue this is just a 3-> 3 correspondence and as such could be modelled by a look-up table, but it happens that 2 spectral distributions that are metameric (same XYZ) on 10º may yield different XYZ on 2º. So, I think it cannot be done at all.

@diuming
Copy link
Author

diuming commented Mar 12, 2025

Thanks, I got it.

My main purpose is to convert spectral tosRGB.
Currently! I only able to convert spectral to XYZ.
I also read some "Chromatic Adaptation" articles but I don't have any idea.

Another questions:
Is it correct path from Spectral to sRGB, Spectral(D50 2°) -> XYZ(D50 2°) -> XYZ(D65 2°) -> sRGB"?
Is it possible transfer with the same observer ? (like XYZ(D50 2°) <-> XYZ(D65 2°))
Could you give me some advice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants