Creating a Structuring Element
The toolbox dilation and erosion functions accept structuring element objects, called STRELs. You use the strelfunction to create STRELs of any arbitrary size and shape. The strel function also includes built-in support for many common shapes, such as lines, diamonds, disks, periodic lines, and balls.