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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

G<br />

H<br />

Fig. 17.7: A region boundary to illustrate the construction<br />

of the chain code.<br />

Suppose we arbitrarily start coding from point A along AB. Suppose<br />

we have a small fixed length stick, by which we measure line AB <strong>and</strong> write<br />

the code for horizontal right (0) (vide fig. 17.6) as many times as the number<br />

of the measuring stick. Last time the stick length may have been a little<br />

larger/smaller than the actual length of the remnant line. Let us assume that<br />

AB is 4 times the length of our measuring stick; so we write 4 zeroes to<br />

describe AB. Proceeding in this manner, we find the chain code of the closed<br />

boundary as follows.<br />

Chain code= { 00003311333445557755}<br />

Rewriting repeated consecutive symbols once only, we find the<br />

modified code = {03134575}. Since it is a closed chain, we can start<br />

anywhere. But the code must start with the minimum index. Here, it is<br />

already in the required form. For a specific example let the chain code be<br />

{2304568}; we would express it in the form {0456823}, which starts with the<br />

minimum index. Such representation helps matching the code of an unknown<br />

boundary with known ones. It may be noted that for two distinct shapes of<br />

boundaries the chain code must be different. If it is not the case, then direction<br />

indices need to be increased.<br />

17.4 High Level Vision<br />

F<br />

A B<br />

The major task of high level vision is to recognize objects from their feature<br />

space, obtained at earlier levels, <strong>and</strong> interpret the scene comprising of one or<br />

more objects. For instance, suppose a football tournament is going on <strong>and</strong> the<br />

E<br />

C<br />

D

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

Saved successfully!

Ooh no, something went wrong!