Functions | |
VXLIB_STATUS | VXLIB_gaussian_5x5_i8u_o8u (const uint8_t src[restrict], const VXLIB_bufParams2D_t *src_addr, uint8_t dst[restrict], const VXLIB_bufParams2D_t *dst_addr, uint8_t shift) |
VXLIB_STATUS | VXLIB_gaussian_5x5_i8u_o8u_checkParams (const uint8_t src[restrict], const VXLIB_bufParams2D_t *src_addr, const uint8_t dst[restrict], const VXLIB_bufParams2D_t *dst_addr, uint8_t shift) |
VXLIB_STATUS VXLIB_gaussian_5x5_i8u_o8u | ( | const uint8_t | src[restrict], |
const VXLIB_bufParams2D_t * | src_addr, | ||
uint8_t | dst[restrict], | ||
const VXLIB_bufParams2D_t * | dst_addr, | ||
uint8_t | shift | ||
) |
| 1 4 6 4 1 | | 4 16 24 16 4 | K = | 6 24 36 24 6 | >> shift (shift is typically 8 to divide the result by 256) | 4 16 24 16 4 | | 1 4 6 4 1 |
[in] | src[] | Pointer to array containing input image (UQ8.0) |
[in] | src_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst[] | Pointer to array containing output image (UQ8.0) |
[in] | dst_addr[] | Pointer to structure containing dimensional information of dst |
[in] | shift | Right shift value after the sum of products of the 25 neighborhood pixels Sum of all coefficients are equal to 256, so "shift" value used is typically 8 to divide by 256. This parameter is configurable in case the user wants to multiply or divide the result by a power of 2. For example, if the user wants to multiply the result of the gaussian by 4, then the shift value should be 8-2 = 6. |
VXLIB_STATUS VXLIB_gaussian_5x5_i8u_o8u_checkParams | ( | const uint8_t | src[restrict], |
const VXLIB_bufParams2D_t * | src_addr, | ||
const uint8_t | dst[restrict], | ||
const VXLIB_bufParams2D_t * | dst_addr, | ||
uint8_t | shift | ||
) |
[in] | src[] | Pointer to array containing input image (UQ8.0) |
[in] | src_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst[] | Pointer to array containing output image (UQ8.0) |
[in] | dst_addr[] | Pointer to structure containing dimensional information of dst |
[in] | shift | Right shift value after the sum of products of the 25 neighborhood pixels Sum of all coefficients are equal to 256, so "shift" value used is typically '8'. This parameter is configurable in case the user wants to multiply or divide the result by a power of 2. For example, if the user wants to multiply the result of the gaussian by 4, then the shift value should be 8-2 = 6. |