ImageGear Professional for Windows ActiveX
CalculateCameraToSRGBMatrix Method

Description:

Calculates matrix for conversion from digital camera color space to linear sRGB color space, based on two known color matrices corresponding to different light conditions, and a white point. By "linear sRGB color space" we assume a linear (Gamma = 1.0) RGB color space that uses sRGB primaries and reference white. This color space can be converted to sRGB by applying sRGB gamma correction function.

If only one color matrix is known, pass null (Nothing) to XYZToCam2.

Dimensions of XYZToCam1 and XYZToCam2 must be equal to (n, 3), where n is channel count of native camera color space (3 or 4). Result matrix dimensions are (3, n).

Syntax:

      CalculateCameraToSRGBMatrix (
        XYZToCam1 As IGDoubleMatrix,    
        Illuminant1 As enumIGIlluminant,        
        XYZToCam2 As IGDoubleMatrix,            
        Illuminant2 As enumIGIlluminant,        
        WhiteXY As IGDoublePoint 
        ) As IGDoubleMatrix

Parameters:

Name Description
XYZToCam1 XYZ to camera matrix under Illuminant 1
Illuminant1 Illuminant 1
XYZToCam XYZ to camera matrix under Illuminant 2
Illuminant2 Illuminant 2
WhiteXY XY coordinates of camera white point

Return Value:

Conversion matrix.

See Also:

BuildSRGBGammaLUT Method

IGDoubleMatrix Object

enumIGIllumninant Enumeration

IGDoublePoint Object

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback