The function implements different algorithm of automatic white balance
dst = cv.balanceWhite(src)
dst = cv.balanceWhite(src, 'OptionName',optionValue, ...)
Input
- src input image (RGB or gray), integer or floating point image.
Output
- dst output image, same size and type as input
src
.
Options
- Type various white balance algorithms. One of:
- Simple (default) perform smart histogram adjustments (ignoring
4% pixels with minimal and maximal values) for each channel.
- GrayWorld currently not implemented!
- InputMin minimum value in the input image, default 0.0
- InputMax maximum value in the input image, default 255.0
- OutputMin minimum value in the output image, default 0.0
- OutputMax maximum value in the output image, default 255.0
The function tries to map image's white color to perceptual white (this can
be violated due to specific illumination or camera settings).