rc_contour.h File Reference

RAPP Compute layer contour chain code generation. More...

Go to the source code of this file.

Functions

RC_EXPORT int rc_contour_4conn_bin (unsigned origin[2], char *restrict contour, int len, const uint8_t *restrict buf, int dim, int width, int height)
 4-connectivity contour chain code.
RC_EXPORT int rc_contour_8conn_bin (unsigned origin[2], char *restrict contour, int len, const uint8_t *restrict buf, int dim, int width, int height)
 8-connectivity contour chain code.

Detailed Description

RAPP Compute layer contour chain code generation.


Function Documentation

RC_EXPORT int rc_contour_4conn_bin ( unsigned  origin[2],
char *restrict  contour,
int  len,
const uint8_t *restrict  buf,
int  dim,
int  width,
int  height 
)

4-connectivity contour chain code.

Parameters:
[out] origin Start coordinate of the contour.
[out] contour Chain code contour string.
len Length in bytes of the contour string.
[in] buf Input pixel buffer.
dim Row dimension of the pixel buffer.
width Image width in pixels.
height Image height in pixels.
Returns:
The length of contour string excluding the NUL-termination.
RC_EXPORT int rc_contour_8conn_bin ( unsigned  origin[2],
char *restrict  contour,
int  len,
const uint8_t *restrict  buf,
int  dim,
int  width,
int  height 
)

8-connectivity contour chain code.

Parameters:
[out] origin Start coordinate of the contour.
[out] contour Chain code contour string.
len Length in bytes of the contour string.
[in] buf Input pixel buffer.
dim Row dimension of the pixel buffer.
width Image width in pixels.
height Image height in pixels.
Returns:
The length of contour string excluding the NUL-termination.

Generated on 1 Jun 2016 for RAPP Compute by  doxygen 1.6.1