Non-Linear Filtering

These functions use non-linear combinations of neighboring pixels to highlight a shape, or to remove noise.

Most can be destructive (except top-hat and median filters) i.e. the source image is overwritten by the destination image. Destructive operations are faster.

All have a gray image and a bilevel equivalent, for example ErodeBox and BiLevelErodeBox.

    1. They define the required shape by a Kernel (usually in a 3x3 matrix).
    2. They slide this Kernel over the image to determine the value of the destination pixel when a match is found: