CVB.Net 14.0
WhiteBalanceFactors Struct Reference

Factors for white balance correction. More...

Public Member Functions

 WhiteBalanceFactors (double r, double g, double b)
 Initialize a white balance factors structure. More...
 

Static Public Attributes

static readonly WhiteBalanceFactors Identity = new WhiteBalanceFactors(1.0, 1.0, 1.0)
 Identity transformation leaving all values as they are.
 

Properties

double Red [get, set]
 White balance factor for the red channel.
 
double Green [get, set]
 White balance factor for the red channel.
 
double Blue [get, set]
 White balance factor for the red channel.
 

Detailed Description

Factors for white balance correction.

Note that the whitebalance factors inside this structure are internally stored as integers with 1/256 increments. Therefore even though the values are exposed as doubles, they cannot represent the full range of double values.

Constructor & Destructor Documentation

◆ WhiteBalanceFactors()

WhiteBalanceFactors ( double  r,
double  g,
double  b 
)

Initialize a white balance factors structure.

Parameters
rCorrection factor for the red channel
gCorrection factor for the green channel
bCorrection factor for the blue channel