SciPy - Image Processing (scipy.ndimage)
What is wrong with this code that attempts dilation?
import numpy as np from scipy.ndimage import binary_dilation img = np.array([[1,0],[0,1]]) dilated = binary_dilation(img, structure=[1,1,1]) print(dilated)
