1 | initial version |
the image you read from disc is CV_8U, and you try to add it to a CV_64F image
either convert it, before the addidtion:
image = np.asarray(image, np.float64)
or specify a type flag in the add call:
add(laplacian, image, dtype=cv2.CV_64F)
2 | No.2 Revision |
the image you read from disc is CV_8U, and you try to add it to a CV_64F image
either convert it, before the addidtion:addition:
image = np.asarray(image, np.float64)
or specify a type flag in the add call:
add(laplacian, image, dtype=cv2.CV_64F)