Core Optical, Inc.
ColorimetricConverter ConvertLMStoXYZ Method Industrial Strength, Scientific Grade
Transforms source data in-place from LMS space to CIE XYZ space.

Namespace: PrecisionImage.Colorimetry
Assembly: PrecisionImage (in PrecisionImage.dll) Version: (

public void ConvertLMStoXYZ(
	SourceData dataSource


Type: PrecisionImage SourceData
A SourceData object encapsulating the image data to be converted.


This method transforms the source data from long/medium/short (LMS) cone excitation space to CIE XYZ tristumulus values using the Hunter-Pointer-Estevez model. LMS values must be stored in channels 0, 1 and 2 respectively. XYZ output values are stored in-place in channels 0, 1 and 2. To guarantee an invertable result, output values are not clamped to any arbitrary range and are stored as-is. The dataSource object must contain at least 3 channels or an OnlineArgumentOutOfRangeException exception will result.

See ConvertXYZtoLMS(SourceData) for an example of usage.
See Also