WhiteBalanceCalculateFactors Method

CVB.Net Documentation
Calculate the red, green and blue gain factor for white balancing.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public static WhiteBalanceFactors CalculateFactors(
	Image image,
	Area2D aoi
)

Parameters

image
Type: Stemmer.CvbImage
Image on which the gain factors are to be calculated.
aoi
Type: Stemmer.CvbArea2D
Area of interest that is assumed to be the neutral color.

Return Value

Type: WhiteBalanceFactors
Calculated white balance factors.
Exceptions

ExceptionCondition
ArgumentNullExceptionIf image is null.
ObjectDisposedExceptionIf image has been disposed.
Remarks

Floating-point valued images must not have negative pixel values for this operation to yield useful output.
See Also

Reference