This is a function is used to subtract values of one gray-scale image array from another gray-scale image array. The resulting gray-scale image array has a minimum element value of zero. That is all negative values resulting from the subtraction are forced to zero.
- gray_img1 - a gray-scale or binary image from which gray_img2 will be subtracted
- gray_img2 - a gray-scale or binary image to be subtracted from gray_img1
- returns difference in pixel values of two images
- Example use:
from plantcv import plantcv as pcv # Subtract image from another image. device, subtracted_img = pcv.image_subtract(gray_img1, gray_img2)