#include <imageprocessor/imageprocessoreffect.h>
Link against: imageprocessor.lib
| class ImageProcessor::TEffectWhiteBalance : public ImageProcessor::TEffect |
| Public Member Enumerations | |
|---|---|
| enum | TWhiteBalanceMode { EWhiteBalanceMeanMode, EWhiteBalanceMaxMode, EWhiteBalanceManualMode, EWhiteBalanceClusterMode } |
| Public Member Functions | |
|---|---|
| IMPORT_C TRgb | ReferenceWhiteColorL() |
| IMPORT_C void | SetWhiteBalanceL(TWhiteBalanceMode, TRgb) |
| IMPORT_C TWhiteBalanceMode | WhiteBalanceModeL() |
| Inherited Enumerations | |
|---|---|
| ImageProcessor::TEffect:TEffectInputType | |
The class provides functions to perform white balance adjustment on an image.
Parameters to define the white balance modes.
| Enumerator | Value | Description |
|---|---|---|
| EWhiteBalanceMeanMode |
Uses the estimated mean gray for the color correction, which is the default mode. | |
| EWhiteBalanceMaxMode |
Uses the estimated maximum intensity color. | |
| EWhiteBalanceManualMode |
Uses a white reference color. | |
| EWhiteBalanceClusterMode |
Calulates the reference from the mean value of the 256-bin distribution. |
| IMPORT_C TRgb | ReferenceWhiteColorL | ( | ) | const |
Gets the current rgb value of the reference white color
| IMPORT_C void | SetWhiteBalanceL | ( | TWhiteBalanceMode | aWhiteBalanceMode, |
| TRgb | aReferenceWhiteColor | |||
| ) | ||||
Specifies the white balance mode and the value of reference white color.
| Parameters | |
|---|---|
| aWhiteBalanceMode | The white balance mode. |
| aReferenceWhiteColor | The rgb value of the reference white color. |
| Leave Codes | |
|---|---|
| KErrNotReady | The effect is not active. |
| KErrArgument | The whitebalance mode is not in the TWhiteBalanceMode enumeration |
| IMPORT_C TWhiteBalanceMode | WhiteBalanceModeL | ( | ) | const |
Gets the white balance mode