psychopy.tools.colorspacetools.rgb2lms

psychopy.tools.colorspacetools.rgb2lms(rgb_Nx3, conversionMatrix=None)[source]

Convert from RGB to cone space (LMS).

Requires a conversion matrix, which will be generated from generic Sony Trinitron phosphors if not supplied (note that you will not get an accurate representation of the color space unless you supply a conversion matrix)

usage:

lms_Nx3 = rgb2lms(rgb_Nx3(el,az,radius), conversionMatrix)

Back to top