rc_rasterize.h File Reference

RAPP Compute chain code line rasterization. More...

Go to the source code of this file.

Functions

RC_EXPORT int rc_rasterize_4conn (char *line, int x0, int y0, int x1, int y1)
 Rasterize a 4-connectivity chain code.
RC_EXPORT int rc_rasterize_8conn (char *line, int x0, int y0, int x1, int y1)
 Rasterize an 8-connectivity chain code.

Detailed Description

RAPP Compute chain code line rasterization.


Function Documentation

RC_EXPORT int rc_rasterize_4conn ( char *  line,
int  x0,
int  y0,
int  x1,
int  y1 
)

Rasterize a 4-connectivity chain code.

Parameters:
[out] line Line chain code string with at least abs(x1 - x0) + abs(y1 - y0) + 1 bytes.
x0 X coordinate of the start position.
y0 Y coordinate of the start position.
x1 X coordinate of the end position.
y1 Y coordinate of the end position.
Returns:
The length of the chain code, excluding the NUL-termination.
RC_EXPORT int rc_rasterize_8conn ( char *  line,
int  x0,
int  y0,
int  x1,
int  y1 
)

Rasterize an 8-connectivity chain code.

Parameters:
[out] line Line chain code string with at least max(abs(x1 - x0), abs(y1 - y0)) + 1 bytes.
x0 X coordinate of the start position.
y0 Y coordinate of the start position.
x1 X coordinate of the end position.
y1 Y coordinate of the end position.
Returns:
The length of the chain code, excluding the NUL-termination.

Generated on 1 Jun 2016 for RAPP Compute by  doxygen 1.6.1