20.01.2013 Views

motion estimation and compensation for very low bitrate video coding

motion estimation and compensation for very low bitrate video coding

motion estimation and compensation for very low bitrate video coding

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.

194 Chapter D. Complements to Chapter 5<br />

Negative half-boundary Positive half-boundary<br />

1<br />

2<br />

3<br />

4 4<br />

1<br />

Figure D.2: Order of use of tracking templates<br />

/* define types of edge feature */<br />

#define O 0 // bOundary<br />

#define G 50 // Gap<br />

#define S 100 // Self-intersection<br />

#define I 150 // Intersection<br />

#define C 200 // Closed loop<br />

/* define the structure of a point on<br />

a half-boundary */<br />

typedef struct point* Point;<br />

typedef struct point{<br />

short contour; // contour number<br />

short vpos; // vertical position in the image<br />

short hpos; // horizontal position in the image<br />

Point next; // pointer to the next point of the half-b.<br />

Point previous; // pointer to the previous point of the half-b.<br />

double angle; // <strong>for</strong> angle measurement<br />

short href; // <strong>for</strong> extraction of highest curvature points<br />

short feature; // type of point: O,G,S,I,C<br />

};<br />

/* define the structure of a half-boundarty */<br />

typedef struct contour {<br />

short number; // reference number of the half-boundary<br />

short type; // type (P or N) of the half-boundary<br />

Point first; // pointer to the first point of the contour<br />

};<br />

/* Routine that implements the corner detector based on the<br />

description of Chapter 5, i.e. a modified version of Noble's<br />

edge detector combined with Najman <strong>and</strong> Vaillant measure of<br />

angles.<br />

Typical parameters are given in the calling routine. */<br />

3<br />

2

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

Saved successfully!

Ooh no, something went wrong!