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. |
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.
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.
[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. |
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.
[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. |
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.
[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. |
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.
[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. |
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.
[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. |