SwisTrack/Components/BinaryErosion

From Wikibooks, open books for an open world
< SwisTrack‎ | Components
Jump to: navigation, search

Description[edit]

Erosion is a method used in image processing to enlarge the black areas of the binary image. The structuring element is a 3x3 rectangle (using the 8 nearest pixels). Combining erosion and dilation allows you to perform opening and closing operations, which remove individual black or white pixels, or smooth out the borders.

It is generally adviced to use the same number of dilation and erosion interations.

Input[edit]

SwisTrack Threshold.png

A binary (black and white) image.

Output[edit]

SwisTrack Threshold.png

A binary (black and white) image.

Parameters[edit]

Iterations[edit]

Number of erosions to apply on the image.