Functions | |
VXLIB_STATUS | VXLIB_gaussian_5x5_br_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, int16_t dstOffsetX, int16_t dstOffsetY) |
VXLIB_STATUS | VXLIB_gaussian_5x5_br_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, int16_t dstOffsetX, int16_t dstOffsetY) |
VXLIB_STATUS VXLIB_gaussian_5x5_br_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, | ||
int16_t | dstOffsetX, | ||
int16_t | dstOffsetY | ||
) |
| 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. |
[in] | dstOffsetX | Parameter indicating x offset of dst pointer relative to position of src pointer in the image (SQ15.0) |
[in] | dstOffsetY | Parameter indicating y offset of dst pointer relative to position of src pointer in the image (SQ15.0) |
VXLIB_STATUS VXLIB_gaussian_5x5_br_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, | ||
int16_t | dstOffsetX, | ||
int16_t | dstOffsetY | ||
) |
[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. |
[in] | dstOffsetX | Parameter indicating x offset of dst pointer relative to position of src pointer in image (SQ15.0) |
[in] | dstOffsetY | Parameter indicating y offset of dst pointer relative to position of src pointer in image (SQ15.0) |