White Balance

Corrects the exposure of an image. A color standard can be specified.

white_balance(device, img, mode='hist', debug=None,roi=None)

returns device, img

Original image

Screenshot

from plantcv import plantcv as pcv

# Corrects image based on color standard and stores output as corrected_img
device, corrected_img = pcv.white_balance(device,img,mode='hist', debug="print",roi=(5, 5, 80, 80))

Corrected image

Screenshot