Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created April 20, 2020 09:29
Show Gist options
  • Save prateekjoshi565/4ba42f8a0d0e2d0376ea4adeb175d6e2 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/4ba42f8a0d0e2d0376ea4adeb175d6e2 to your computer and use it in GitHub Desktop.
# apply image dilation
kernel = np.ones((3,3),np.uint8)
dilated = cv2.dilate(thresh,kernel,iterations = 1)
# plot dilated image
plt.imshow(dilated, cmap = 'gray')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment