Ask Your Question
0

Problem for erode in python opencv

asked 2014-04-07 22:02:27 -0600

I want to erode an image with the kernel= numpy.ones(1,21,np.uint8), but the program will crash.

However I change the kernel to another value whose row value is not 1, it won't crash. Is it a bug?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-08 02:45:18 -0600

Guanta gravatar image

Be aware of the arguments, it has to be numpy.ones( (1,21), np.uint8), this kernel works perfectly fine for me using OpenCV 2.4.8.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-04-07 22:02:27 -0600

Seen: 267 times

Last updated: Apr 08 '14