Is there any way to subtract two images in python opencv2 ?
cv2.subtract does not work it just binds the values between 0-255 so if you wanna get negative values just convert the image from unit8 to int32 or int64. Note unint8 could only take on the values of 0-255 thus it could not handle negative values
image1= np.int32(image1)
image2= np.int32(image2)
image3 = image1 - image2