You are viewing a single comment's thread. Return to all comments →
import numpy as np import matplotlib.pyplot as plt from skimage.io import imread, imshow from skimage.draw import disk from skimage.morphology import (erosion, dilation, closing, opening, area_closing, area_opening) from skimage.color import rgb2gray a = np.array([ [0,0,1,1,0], [0,0,1,1,0], [0,0,1,1,0], [1,1,1,1,1] ]) s = np.array([ [1], [1], [1]]) image = np.array(erosion(a,s)) print(image)
Seems like cookies are disabled on this browser, please enable them to open this website
Morphological Operations: Erosion with a Structuring Element
You are viewing a single comment's thread. Return to all comments →