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

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

public void ConvertXYZtoLinearRGB(
	SourceData dataSource
)

Parameters

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

Remarks

The conversion is computed in reference to the D65 white point according to the ITU-R BT.709 standard. The XYZ values must be stored in channels 0, 1 and 2 respectively. Results are generally within the nominal range 0.0 - 1.0 but may be fall outside that range depending on the source data. The conversion is applied under the assumption that the data in dataSource represents XYZ tristimulus values. Resulting values are not clamped to any arbitrary range and are stored as-is. If the RGB data values were originally sourced from an image, then they are stored in-place in the same channel order as the original image. Otherwise the RGB values are stored in-place in channels 0, 1 and 2 respectively. dataSource must contain at least 3 channels or an OnlineArgumentOutOfRangeException exception will result.
Examples

See ConvertLinearRGBtoXYZ(SourceData) for an example.
See Also