Histogram Equalization

This is a method used to normalize the distribution of signal intensity values within an image. If the image has low contrast it will make it easier to threshold.

hist_equalization(img, device, debug=None)

returns device, normalized image

Grayscale image

Screenshot



from plantcv import plantcv as pcv

# Examine signal distribution within an image
# prints out an image histogram of signal within image
device, he_img = pcv.HistEqualization(img, device, debug="print")

Normalized image

Screenshot