rc_crop.h File Reference

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.

Detailed Description

RAPP Compute layer binary image cropping.


Function Documentation

RC_EXPORT int rc_crop_box_bin ( const uint8_t *  buf,
int  dim,
int  width,
int  height,
unsigned  box[4] 
)

Compute the bounding box.

Parameters:
[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.
Returns:
One if the image is non-empty, zero otherwise.
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.

Parameters:
[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.
Returns:
One if a non-zero pixel was found, zero otherwise.

Generated on 1 Jun 2016 for RAPP Compute by  doxygen 1.6.1