CVB.Net 14.0
WhiteBalance Class Reference

WhiteBalance functions inside the Image Manager. More...

Static Public Member Functions

static WhiteBalanceFactors CalculateFactors (Image image, Area2D aoi)
 Calculate the red, green and blue gain factor for white balancing. More...
 
static void ApplyFactors (Image image, WhiteBalanceFactors factors)
 Applies the white-balance factors to the given image . More...
 

Detailed Description

WhiteBalance functions inside the Image Manager.

Member Function Documentation

◆ ApplyFactors()

static void ApplyFactors ( Image  image,
WhiteBalanceFactors  factors 
)
static

Applies the white-balance factors to the given image .

Parameters
imageImage to apply white-balance factors to.
factorsGain factors to apply.
Exceptions
ArgumentNullExceptionIf image is null.
ObjectDisposedExceptionIf image has been disposed.

◆ CalculateFactors()

static WhiteBalanceFactors CalculateFactors ( Image  image,
Area2D  aoi 
)
static

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

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

Parameters
imageImage on which the gain factors are to be calculated.
aoiArea of interest that is assumed to be the neutral color.
Returns
Calculated white balance factors.
Exceptions
ArgumentNullExceptionIf image is null.
ObjectDisposedExceptionIf image has been disposed.