Connected-Components Seed Fill

4- and 8-connectivity seed fill on binary images. More...

Functions

int rapp_fill_4conn_bin (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict map, int map_dim, int width, int height, int xseed, int yseed)
 4-connectivity connected-components seed fill.
int rapp_fill_8conn_bin (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict map, int map_dim, int width, int height, int xseed, int yseed)
 8-connectivity connected-components seed fill.

Detailed Description

4- and 8-connectivity seed fill on binary images.

The input of these functions is a binary map image, and a seed pixel position. The functions set pixels in the destination image that are connected to the seed pixel in the map image. All other pixels in the destination image are set to zero. The alignment pixels must be cleared before calling any of these functions, or the result may be invalid. The images must be aligned.

Next section: Chain Codes


Function Documentation

int rapp_fill_4conn_bin ( uint8_t *restrict  dst,
int  dst_dim,
const uint8_t *restrict  map,
int  map_dim,
int  width,
int  height,
int  xseed,
int  yseed 
)

4-connectivity connected-components seed fill.

Parameters:
[out] dst Destination buffer.
dst_dim Row dimension in bytes of the destination buffer.
[in] map Source map buffer containing the binary object to fill.
map_dim Row dimension in bytes of map buffer.
width Image width in pixels.
height Image height in pixels.
xseed X-coordinate of the seed point where the fill starts.
yseed Y-coordinate of the seed point where the fill starts.
Returns:
A negative error code on error, zero otherwise.
int rapp_fill_8conn_bin ( uint8_t *restrict  dst,
int  dst_dim,
const uint8_t *restrict  map,
int  map_dim,
int  width,
int  height,
int  xseed,
int  yseed 
)

8-connectivity connected-components seed fill.

Parameters:
[out] dst Destination buffer.
dst_dim Row dimension in bytes of the destination buffer.
[in] map Source map buffer containing the binary object to fill.
map_dim Row dimension in bytes of map buffer.
width Image width in pixels.
height Image height in pixels.
xseed X-coordinate of the seed point where the fill starts.
yseed Y-coordinate of the seed point where the fill starts.
Returns:
A negative error code on error, zero otherwise.

Generated on 1 Jun 2016 for RAPP by  doxygen 1.6.1