Hacker News new | ask | show | jobs
by vanattab 4138 days ago
Do you guys support the LMS colorspace i.e. where L,M,S is the stimulation of the long, med, short cones in the human eye.
2 comments

We do have support for quite a few chromatic adaptation transforms to cones space (https://github.com/colour-science/colour/blob/develop/colour...) some cones space transformation are directly tied to the various chromatic adaptation models (https://github.com/colour-science/colour/tree/develop/colour...) or colour appearance models (https://github.com/colour-science/colour/tree/develop/colour...) we have implemented.

We also have the Stockman & Sharpe Cone Fundamentals for 2 and 10 degree observers (https://github.com/colour-science/colour/blob/develop/colour...) and the code to convert those cone fundamentals cmfs to the corresponding XYZ cmfs (https://github.com/colour-science/colour/blob/develop/colour...) although it is more educational than anything else because often, the resulting cmfs are manually adjusted (I would have to check if it is the case with the XYZ cmfs resulting from the LMS cmfs).

Julia's Colors.jl[1] does.

[1] https://github.com/JuliaLang/Color.jl#lms