# Grey Morphology NxM

Specify the Kernel Height and Kernel Width of the kernel and use the checkboxes in the Kernel Mask tab to shape the structuring element.

To specify a custom kernel of positive or negative values and further modify how the morphology operator will perform an erosion or dilation, check the Kernel Enabled checkbox and use the Kernel tab to enter the values for the custom structuring element.

See the topic Greyscale Morphology for more information on this operator.