White Balance

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

plantcv.white_balance(img, mode='hist', roi=None)

returns corrected_img

Original image

Screenshot

from plantcv import plantcv as pcv

# Set global debug behavior to None (default), "print" (to file), or "plot" (Jupyter Notebooks or X11)
pcv.params.debug = "print"

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

Corrected image

Screenshot