Integral Images

Integral image calculations for binary and 8-bit images. More...

Functions

int rapp_integral_sum_bin_u8 (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height)
 Integral image.
int rapp_integral_sum_bin_u16 (uint16_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height)
 Integral image.
int rapp_integral_sum_bin_u32 (uint32_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height)
 Integral image.
int rapp_integral_sum_u8_u16 (uint16_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height)
 Integral image.
int rapp_integral_sum_u8_u32 (uint32_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height)
 Integral image.

Detailed Description

Integral image calculations for binary and 8-bit images.

The functions may read data up to the nearest alignment boundary, so if those pixels are not properly cleared the output may be invalid.

All images must be aligned.

Next section: License


Function Documentation

int rapp_integral_sum_bin_u8 ( uint8_t *restrict  dst,
int  dst_dim,
const uint8_t *restrict  src,
int  src_dim,
int  width,
int  height 
)

Integral image.

Compute the 8-bit integral image from a binary source.

Parameters:
[out] dst Integral image buffer.
dst_dim Row dimension of the integral image.
[in] src Source image buffer.
src_dim Row dimension of the source image.
width Image width in pixels.
height Image height in pixels.
Returns:
A negative error code on error, zero otherwise.
int rapp_integral_sum_bin_u16 ( uint16_t *restrict  dst,
int  dst_dim,
const uint8_t *restrict  src,
int  src_dim,
int  width,
int  height 
)

Integral image.

Compute the 16-bit integral image from a binary source.

Parameters:
[out] dst Integral image buffer.
dst_dim Row dimension of the integral image.
[in] src Source image buffer.
src_dim Row dimension of the source image.
width Image width in pixels.
height Image height in pixels.
Returns:
A negative error code on error, zero otherwise.
int rapp_integral_sum_bin_u32 ( uint32_t *restrict  dst,
int  dst_dim,
const uint8_t *restrict  src,
int  src_dim,
int  width,
int  height 
)

Integral image.

Compute the 32-bit integral image from a binary source.

Parameters:
[out] dst Integral image buffer.
dst_dim Row dimension of the integral image.
[in] src Source image buffer.
src_dim Row dimension of the source image.
width Image width in pixels.
height Image height in pixels.
Returns:
A negative error code on error, zero otherwise.
int rapp_integral_sum_u8_u16 ( uint16_t *restrict  dst,
int  dst_dim,
const uint8_t *restrict  src,
int  src_dim,
int  width,
int  height 
)

Integral image.

Compute the 16-bit integral image from an 8-bit source.

Parameters:
[out] dst Integral image buffer.
dst_dim Row dimension of the integral image.
[in] src Source image buffer.
src_dim Row dimension of the source image.
width Image width in pixels.
height Image height in pixels.
Returns:
A negative error code on error, zero otherwise.
int rapp_integral_sum_u8_u32 ( uint32_t *restrict  dst,
int  dst_dim,
const uint8_t *restrict  src,
int  src_dim,
int  width,
int  height 
)

Integral image.

Compute the 32-bit integral image from an 8-bit source.

Parameters:
[out] dst Integral image buffer.
dst_dim Row dimension of the integral image.
[in] src Source image buffer.
src_dim Row dimension of the source image.
width Image width in pixels.
height Image height in pixels.
Returns:
A negative error code on error, zero otherwise.

Generated on 1 Jun 2016 for RAPP by  doxygen 1.6.1