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. | |
RAPP Compute chain code line rasterization.
| RC_EXPORT int rc_rasterize_4conn | ( | char * | line, | |
| int | x0, | |||
| int | y0, | |||
| int | x1, | |||
| int | y1 | |||
| ) |
Rasterize a 4-connectivity chain code.
| [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. |
| RC_EXPORT int rc_rasterize_8conn | ( | char * | line, | |
| int | x0, | |||
| int | y0, | |||
| int | x1, | |||
| int | y1 | |||
| ) |
Rasterize an 8-connectivity chain code.
| [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. |
1.6.1