Adding annotations

void setMark(SEAM_MARKS *marks,int row,int col,int type);
int marksAnnotate(SEAM_MARKS *marks, int l, int t, int r, int b,int type);

Annotates a pixel or a rectangular region of the Marks object.

The arguments for the setMark macro are as follows.

marks
Pointer to the Marks object to annotate.
row
Row of the pixel to annotate.
col
Column of the pixel to annotate.
type
Indicates the type of annotation to make. See Section 4.3.2 for the encoding.

The arguments for the marksAnnotate function are as follows.

marks
Pointer to the Marks object to annotate.
l
x coordinate of the left side of the rectangle.
t
y coordinate of the top side of the rectangle.
r
x coordinate of the right side of the rectangle.
b
y coordinate of the bottom side of the rectangle.
type
Indicates the type of annotation to make. See Section 4.3.2 for the encoding.

The function always returns one.

Hayden Walles 2015-09-02
SourceForge.net Logo