Is there any problem in convolution of binary image and kernel?

asked 2017-07-01 05:28:32 -0500

akash29 gravatar image

updated 2017-07-01 06:02:18 -0500

I need to sharpen the edge of the following imageBinary image.

I am doing a 2D convolution with the image for edge sharpening. The kernels are [[1,1,1],[1,-7,1],[1,1,1]] and [[-1,-1,-1],[-1,9,-1],[-1,-1,-1]] Then there's this error:- error: (-213) Unsupported combination of source format (=4), and destination format (=4) in function cv::getLinearFilter

On the other hand, I am using it on the gray image and it's working fine. Thanks for the help.

edit retag flag offensive close merge delete

Comments

please show those lines of code.

format (=4) means int32, btw.

berak gravatar imageberak ( 2017-07-01 06:25:21 -0500 )edit