06.03.2013 Views

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

It may be noted that segmenting an image into regions without any<br />

knowledge of the scene or its modules is practically infeasible. Generally, the<br />

partial knowledge about the image such as an outdoor scene or a classroom or<br />

a football tournament helps the segmentation process.<br />

17.3.2 Labeling an Image<br />

After segmenting an image into disjoint regions their shapes, spatial<br />

relationships <strong>and</strong> other characteristics can be described <strong>and</strong> labeled for<br />

subsequent interpretation. Typically a region description includes size of the<br />

area, location of the center of mass, minimum bounding rectangles, boundary<br />

contrast, shape classification number, chain code [6], position <strong>and</strong> type of<br />

vertices <strong>and</strong> the like. We here explain the method for describing the boundary<br />

of a region by a chain code.<br />

A chain code is a sequence of integers, corresponding to direction of<br />

traversal of the segments around a region, starting from a fixed position. The<br />

direction of traversals of a segment is compared with the set of primitive<br />

directions <strong>and</strong> the nearest one is selected. The traversed segment is encoded<br />

following the st<strong>and</strong>ard integer code of that direction. The traversal is<br />

continued until the chain repeats. The minimum index in the closed chain is<br />

identified to match it with known strings, constructed in the same manner.<br />

One important point that needs mention is that the consecutive chain<br />

indices may be identical, when we move along a large linear segment. Under<br />

this circumstance the portion of the chain describing the same index is<br />

replaced by the index, taken only once. Constructing a chain code for the<br />

boundary of a region is illustrated below (vide fig. 17.6 <strong>and</strong> 17.7).<br />

4<br />

5<br />

3<br />

2<br />

Fig. 17.6: The direction indices for chain coding: the angle between<br />

two consecutive directions is 45 degrees.<br />

6<br />

7<br />

1<br />

0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!