EColorLookup::WhiteBalance

Initializes a color lookup table that can be used for color adjustment, including a global gain, gamma pre-compensation [cancellation] and white balancing.

Namespace: Euresys::Open_eVision

[C++]

void WhiteBalance(
   float gain,
   float gamma,
   float balanceRed,
   float balanceGreen,
   float balanceBlue
)

Parameters

gain

Global gain to be applied to all three color components. By default, the image intensity remains unchanged.

gamma

Gamma exponent. Setting this parameter will cancel the gamma pre-compensation feature of the camera, or apply it. By default, the no gamma pre-compensation is assumed (linear response). The gamma exponent can be chosen among the predefined values EasyColor::CompensateNtscGamma/EasyColor::CompensatePalGamma/EasyColor::CompensateSmpteGamma (pre-compensation) or EasyColor::NtscGamma/EasyColor::PalGamma/EasyColor::SmpteGamma (pre-compensation cancellation), or be user-defined.

balanceRed

Color values to be used for white balance. These parameters should be set to the measured average values of a white (or gray) pixels area, allowing the white balance to adjust pre-component gains appropriately. Use function EasyImage::PixelAverage to obtain them. By default, no white balancing is performed.

balanceGreen

Color values to be used for white balance. These parameters should be set to the measured average values of a white (or gray) pixels area, allowing the white balance to adjust pre-component gains appropriately. Use function EasyImage::PixelAverage to obtain them. By default, no white balancing is performed.

balanceBlue

Color values to be used for white balance. These parameters should be set to the measured average values of a white (or gray) pixels area, allowing the white balance to adjust pre-component gains appropriately. Use function EasyImage::PixelAverage to obtain them. By default, no white balancing is performed.

Remarks

To apply some transform to a color image, you initialize the color lookup once for all and use it at will with EColorLookup::Transform or EasyColor::TransformBayer operation.

EColorLookup.WhiteBalance

Initializes a color lookup table that can be used for color adjustment, including a global gain, gamma pre-compensation [cancellation] and white balancing.

Namespace: Euresys.Open_eVision

[C#]

void WhiteBalance(
   float gain,
   float gamma,
   float balanceRed,
   float balanceGreen,
   float balanceBlue
)

Parameters

gain

Global gain to be applied to all three color components. By default, the image intensity remains unchanged.

gamma

Gamma exponent. Setting this parameter will cancel the gamma pre-compensation feature of the camera, or apply it. By default, the no gamma pre-compensation is assumed (linear response). The gamma exponent can be chosen among the predefined values EasyColor::CompensateNtscGamma/EasyColor::CompensatePalGamma/EasyColor::CompensateSmpteGamma (pre-compensation) or EasyColor::NtscGamma/EasyColor::PalGamma/EasyColor::SmpteGamma (pre-compensation cancellation), or be user-defined.

balanceRed

Color values to be used for white balance. These parameters should be set to the measured average values of a white (or gray) pixels area, allowing the white balance to adjust pre-component gains appropriately. Use function EasyImage::PixelAverage to obtain them. By default, no white balancing is performed.

balanceGreen

Color values to be used for white balance. These parameters should be set to the measured average values of a white (or gray) pixels area, allowing the white balance to adjust pre-component gains appropriately. Use function EasyImage::PixelAverage to obtain them. By default, no white balancing is performed.

balanceBlue

Color values to be used for white balance. These parameters should be set to the measured average values of a white (or gray) pixels area, allowing the white balance to adjust pre-component gains appropriately. Use function EasyImage::PixelAverage to obtain them. By default, no white balancing is performed.

Remarks

To apply some transform to a color image, you initialize the color lookup once for all and use it at will with EColorLookup::Transform or EasyColor::TransformBayer operation.