ImageGear .NET - Updated
CalculateWhitePoint(IGDoubleMatrix,ImGearIlluminant,IGDoubleMatrix,ImGearIlluminant,Double[]) Method




ImageGear23.Core Assembly > ImageGear.Processing Namespace > ImGearCameraRawProcessing Class > CalculateWhitePoint Method : CalculateWhitePoint(IGDoubleMatrix,ImGearIlluminant,IGDoubleMatrix,ImGearIlluminant,Double[]) Method
XYZ to camera colorspace conversion matrix under Illuminant 1.
Illuminant 1.
XYZ to camera colorspace conversion matrix under Illuminant 2.
Illuminant 2.
Normalized coordinates of a neutral color.
Calculates the white point corresponding to neutral color in camera color space.
Syntax
'Declaration
 
Public Overloads Shared Function CalculateWhitePoint( _
   ByVal colorMatrix1 As IGDoubleMatrix, _
   ByVal illuminant1 As ImGearIlluminant, _
   ByVal colorMatrix2 As IGDoubleMatrix, _
   ByVal illuminant2 As ImGearIlluminant, _
   ByVal neutralColor() As Double _
) As ImGearDoublePoint
'Usage
 
Dim colorMatrix1 As IGDoubleMatrix
Dim illuminant1 As ImGearIlluminant
Dim colorMatrix2 As IGDoubleMatrix
Dim illuminant2 As ImGearIlluminant
Dim neutralColor() As Double
Dim value As ImGearDoublePoint
 
value = ImGearCameraRawProcessing.CalculateWhitePoint(colorMatrix1, illuminant1, colorMatrix2, illuminant2, neutralColor)

Parameters

colorMatrix1
XYZ to camera colorspace conversion matrix under Illuminant 1.
illuminant1
Illuminant 1.
colorMatrix2
XYZ to camera colorspace conversion matrix under Illuminant 2.
illuminant2
Illuminant 2.
neutralColor
Normalized coordinates of a neutral color.

Return Value

Remarks
Calculates white point corresponding to neutral color in camera color space based on two known color matrices corresponding to different light conditions.

If only one color matrix is known, pass null to >colorMatrix2.

Dimensions of >colorMatrix1 and >colorMatrix2 must be equal to (n, 3), where n is channel count of native camera color space (3 or 4).

See Also

Reference

ImGearCameraRawProcessing Class
ImGearCameraRawProcessing Members
Overload List
ImGearDoublePoint Structure
ImGearIlluminant Enumeration