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

Spectral.js vs spectral.py #11

Open
Roger-Breton opened this issue Mar 22, 2024 · 1 comment
Open

Spectral.js vs spectral.py #11

Roger-Breton opened this issue Mar 22, 2024 · 1 comment

Comments

@Roger-Breton
Copy link

Please excuse my ignorance but, suppose I don't have a good knowledge of JavaScript, can I use the Python code to achieve rhe same result? I am interested in using Kubelka-Monk to develop a basic acrylic paint spectral mixing implementation for my Photoshop graphic design students. I have a box of 42 Liquitex acrylic tubes I measured spectrally. I guess I will possibly need to create "tint ladders" for each of these "colorants" to reflect "concentration" at some point? But, in the most basic implementation, the way you have it, is you only have a set of seven colorants for which you have spectral reflectances. I'm still not clear on the theoretical meaning of K over S, something to do with "Absorption" vs "Scattering".

My goal is to have a way to compute a spectral match based on a database of colorants. It does not have to be perfect at all. I'm interested in understanding the theoretical application. Suppose I have a CIE Lab color I want to match, instead of empirically finding which pigments to mix, the software would direct me to select a good starting set.

Any help is appreciated.

@Roger-Breton
Copy link
Author

For the record, I identified the terms of your XYZ -> RGB matrix and it is "sRGB".
Have you used any of www.brucelindbloom.com information?
Your terminolgy like "compounding" and "linear to rgb" sounds a lot like his.

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

1 participant