RAPP Compute layer binary image cropping. More...
Go to the source code of this file.
Functions | |
RC_EXPORT int | rc_crop_seek_bin (const uint8_t *buf, int dim, int width, int height, unsigned pos[2]) |
Find the first non-zero pixel in traversal order. | |
RC_EXPORT int | rc_crop_box_bin (const uint8_t *buf, int dim, int width, int height, unsigned box[4]) |
Compute the bounding box. |
RAPP Compute layer binary image cropping.
RC_EXPORT int rc_crop_box_bin | ( | const uint8_t * | buf, | |
int | dim, | |||
int | width, | |||
int | height, | |||
unsigned | box[4] | |||
) |
Compute the bounding box.
[in] | buf | Input pixel buffer. |
dim | Row dimension of the input buffer. | |
width | Image width in pixels. | |
height | Image height in pixels. | |
[out] | box | Bounding box of the non-zero pixels. |
RC_EXPORT int rc_crop_seek_bin | ( | const uint8_t * | buf, | |
int | dim, | |||
int | width, | |||
int | height, | |||
unsigned | pos[2] | |||
) |
Find the first non-zero pixel in traversal order.
[in] | buf | Input pixel buffer. |
dim | Row dimension of the input buffer. | |
width | Image width in pixels. | |
height | Image height in pixels. | |
[out] | pos | Coordinate of the first non-zero pixel. |