MacBoynToLMS
>Psychtoolbox>PsychColorimetric
[LMS, factorsLMS] = MacBoynToLMS(lsY,T_cones,T_lum)
Convert Macleod-Boynton chromaticity together with luminance to
cone coordinates.
This is designed to be used with the modern form of LMSTOMacBoyn,
namely
lsY = LMSToMacBoyn(LMS2,T_cones,T_Y,1);
as this form returns both ls and the corresponding luminance. Passing
both cone fundamentals and luminance sensitivity (T_cones and T_Y) keeps
the routine general. The scaling of s is also consistent when the calls
are done in this way.
See usage example in LMSToMacBoyn.
Path Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychColorimetric/MacBoynToLMS.m