ImageGear PDF v25.2 - Updated
CalculateWhitePoint(Double[,],ImGearIlluminant,Double[,],ImGearIlluminant,Double[]) Method




ImageGear.Core Assembly > ImageGear.Processing Namespace > ImGearCameraRawProcessing Class > CalculateWhitePoint Method : CalculateWhitePoint(Double[,],ImGearIlluminant,Double[,],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 Double, _
   ByVal illuminant1 As ImGearIlluminant, _
   ByVal colorMatrix2(,) As Double, _
   ByVal illuminant2 As ImGearIlluminant, _
   ByVal neutralColor() As Double _
) As ImGearDoublePoint
'Usage
 
Dim colorMatrix1() As Double
Dim illuminant1 As ImGearIlluminant
Dim colorMatrix2() As Double
Dim illuminant2 As ImGearIlluminant
Dim neutralColor() As Double
Dim value As ImGearDoublePoint
 
value = ImGearCameraRawProcessing.CalculateWhitePoint(colorMatrix1, illuminant1, colorMatrix2, illuminant2, neutralColor)
public static ImGearDoublePoint CalculateWhitePoint( 
   double[,] colorMatrix1,
   ImGearIlluminant illuminant1,
   double[,] colorMatrix2,
   ImGearIlluminant illuminant2,
   double[] neutralColor
)
public: static ImGearDoublePoint CalculateWhitePoint( 
   double[,]* colorMatrix1,
   ImGearIlluminant illuminant1,
   double[,]* colorMatrix2,
   ImGearIlluminant illuminant2,
   double[]* 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

Is this page helpful?
Yes No
Thanks for your feedback.