The shape of the structure element makes the morphology transformation sensitive to specific shapes in the input image.

Type

Appearance

Horizontal

Diagonal 45°

Vertical

Diagonal 135°

Cross

Square

Octagon

The size of the structure elements is fixed to five times five pixels. You can increase the effective size by applying a structure element multiple times. This is equal to applying an equivalent larger structure element once.

1

Dilation applied once with a larger structure element.

2

Dilation applied twice with a smaller structure element yielding the same result.

This method is used in the morphology tools.