Toggle

In this lesson we will explore a non standard technique for image segmentation. It is based on the toggle concept. The toggle is defined as:

For this particular experiment we use a slight modification of this toggle, where the resultant image is binary:

Segmenting the tracks of a PCB using toggle

The idea of this segmentation process is to estimate the foreground and the background of the image. The segmented image, the pixels will have value 1 if they are nearer to the correspondent foreground estimative and 0 if their are neared to the background estimative.

To estimate the foreground and background, we use closing and opening respectively, with a proper size and shape for structure element.

Below, we show the original grey-level image.

original

The foreground and background estimative are shown below. It was used a disk of diameter 12 for the foreground (closing) and diameter 35 for the background (opening).

left: closing by small disk; right: opening by a large disk

The original toggle is shown at left and the toggle with binary output is show right which is the result of the segmentation.

a)toggle of the original by the closing and opening; b)binary toggle using thresholding
a) b)





BRAZILIAN WORKSHOP'96 ON MATHEMATICAL MORPHOLOGY