Given the code below, the cv2.dilate and cv2.erode functions in python return the same image that I send to it. What am I doing wrong? I am using OpenCV3.0.0. and numpy1.9.0 on iPython 2.7
im = np.zeros((100,100), dtype=np.uint8) im[50:,50:] = 255 dilated = cv2.dilate(im, (11,11)) print np.array_equal(im, dilated)
What returns:
True
{} Edited Another extended post is a kernel type question. This message actually reflects a function call error.
source share