rc_stat.h File Reference

RAPP Compute layer statistics. More...

Go to the source code of this file.

Functions

RC_EXPORT uint32_t rc_stat_sum_bin (const uint8_t *buf, int dim, int width, int height)
 Binary pixel sum.
RC_EXPORT uint32_t rc_stat_sum_u8 (const uint8_t *buf, int dim, int width, int height)
 8-bit pixel sum.
RC_EXPORT void rc_stat_sum2_u8 (const uint8_t *buf, int dim, int width, int height, uintmax_t sum[2])
 8-bit pixel sum and squared sum.
RC_EXPORT void rc_stat_xsum_u8 (const uint8_t *restrict src1, int src1_dim, const uint8_t *restrict src2, int src2_dim, int width, int height, uintmax_t sum[5])
 8-bit pixel cross sums.
RC_EXPORT int rc_stat_min_bin (const uint8_t *buf, int dim, int width, int height)
 Binary pixel min.
RC_EXPORT int rc_stat_max_bin (const uint8_t *buf, int dim, int width, int height)
 Binary pixel max.
RC_EXPORT int rc_stat_min_u8 (const uint8_t *buf, int dim, int width, int height)
 8-bit pixel min.
RC_EXPORT int rc_stat_max_u8 (const uint8_t *buf, int dim, int width, int height)
 8-bit pixel max.

Detailed Description

RAPP Compute layer statistics.


Function Documentation

RC_EXPORT int rc_stat_max_bin ( const uint8_t *  buf,
int  dim,
int  width,
int  height 
)

Binary pixel max.

Parameters:
[in] buf Input pixel buffer.
dim Row dimension of the input buffer.
width Image width in pixels.
height Image height in pixels.
Returns:
The maximum pixel value in image.
RC_EXPORT int rc_stat_max_u8 ( const uint8_t *  buf,
int  dim,
int  width,
int  height 
)

8-bit pixel max.

Parameters:
[in] buf Input pixel buffer.
dim Row dimension of the input buffer.
width Image width in pixels.
height Image height in pixels.
Returns:
The maximum pixel value in image.
RC_EXPORT int rc_stat_min_bin ( const uint8_t *  buf,
int  dim,
int  width,
int  height 
)

Binary pixel min.

Parameters:
[in] buf Input pixel buffer.
dim Row dimension of the input buffer.
width Image width in pixels.
height Image height in pixels.
Returns:
The minimum pixel value in image.
RC_EXPORT int rc_stat_min_u8 ( const uint8_t *  buf,
int  dim,
int  width,
int  height 
)

8-bit pixel min.

Parameters:
[in] buf Input pixel buffer.
dim Row dimension of the input buffer.
width Image width in pixels.
height Image height in pixels.
Returns:
The minimum pixel value in image.
RC_EXPORT void rc_stat_sum2_u8 ( const uint8_t *  buf,
int  dim,
int  width,
int  height,
uintmax_t  sum[2] 
)

8-bit pixel sum and squared sum.

Parameters:
[in] buf Input pixel buffer.
dim Row dimension of the input buffer.
width Image width in pixels.
height Image height in pixels.
[out] sum The computed pixel sum and squared sum.
RC_EXPORT uint32_t rc_stat_sum_bin ( const uint8_t *  buf,
int  dim,
int  width,
int  height 
)

Binary pixel sum.

Parameters:
[in] buf Input pixel buffer.
dim Row dimension of the input buffer.
width Image width in pixels.
height Image height in pixels.
Returns:
The computed sum of all pixels.
RC_EXPORT uint32_t rc_stat_sum_u8 ( const uint8_t *  buf,
int  dim,
int  width,
int  height 
)

8-bit pixel sum.

Parameters:
[in] buf Input pixel buffer.
dim Row dimension of the input buffer.
width Image width in pixels.
height Image height in pixels.
Returns:
The computed sum of all pixels.
RC_EXPORT void rc_stat_xsum_u8 ( const uint8_t *restrict  src1,
int  src1_dim,
const uint8_t *restrict  src2,
int  src2_dim,
int  width,
int  height,
uintmax_t  sum[5] 
)

8-bit pixel cross sums.

Parameters:
[in] src1 First source pixel buffer.
src1_dim Row dimension of the first source buffer.
[in] src2 Second source pixel buffer.
src2_dim Row dimension of the first second buffer.
width Image width in pixels.
height Image height in pixels.
[out] sum The computed pixel sums and squared sums and cross sum.

Generated on 1 Jun 2016 for RAPP Compute by  doxygen 1.6.1