Hi! I am looking for something similar to python’s dilation function in skimage.morphology. I want to achieve precisely the following functionality:
>>> import numpy as np
>>> from skimage.morphology import dilation
>>> from skimage.morphology import disk
>>> bright_pixel = np.array([[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0]], dtype=np.uint8)
>>> dilation(bright_pixel, disk(1))
array([[0, 0, 0, 0, 0],
[0, 0, 1, 0, 0],
[0, 1, 1, 1, 0],
[0, 0, 1, 0, 0],
[0, 0, 0, 0, 0]], dtype=uint8)
Can you suggest how to implement the same in Julia?