Perform Erosion on an Image using a Square Strel The script erosion.m contains the code to perform erosion on an image using a square strel, as shown below: Original Image: Result Image: