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.

image_add(img1, img2, device, debug=None)

returns device, 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

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

Sum of images 1 and 2

Screenshot