Image add

This is a method used to perform pixelwise addition between images. The numpy addition function '+' is used. This is a modulo operation rather than the cv2.add fxn which is a saturation operation.

plantcv.image_add(gray_img1, gray_img2)

returns image of the sum of both images

Image 1 to be added

Screenshot

Image 2 to be added

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"

# Add two images together
# Results to combine/stack the pixelwise intensity found in two images
sum_img = pcv.image_add(img1, img2)

Sum of images 1 and 2

Screenshot