Ask Your Question

Revision history [back]

click to hide/show revision 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)

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)