VXLIB_absDiff_i8u_i8u_o8u

## Functions

VXLIB_STATUS VXLIB_absDiff_i8u_i8u_o8u (const uint8_t src0[restrict], const VXLIB_bufParams2D_t *src0_addr, const uint8_t src1[restrict], const VXLIB_bufParams2D_t *src1_addr, uint8_t dst[restrict], const VXLIB_bufParams2D_t *dst_addr)

VXLIB_STATUS VXLIB_absDiff_i8u_i8u_o8u_checkParams (const uint8_t src0[], const VXLIB_bufParams2D_t *src0_addr, const uint8_t src1[], const VXLIB_bufParams2D_t *src1_addr, const uint8_t dst[], const VXLIB_bufParams2D_t *dst_addr)

## ◆ VXLIB_absDiff_i8u_i8u_o8u()

 VXLIB_STATUS VXLIB_absDiff_i8u_i8u_o8u ( const uint8_t src0[restrict], const VXLIB_bufParams2D_t * src0_addr, const uint8_t src1[restrict], const VXLIB_bufParams2D_t * src1_addr, uint8_t dst[restrict], const VXLIB_bufParams2D_t * dst_addr )
Description:
Computes the pixel-wise absolute difference between two unsigned 8-bit images.
Method:
The absolute difference is computed using the following equation:
` dst(x,y) = | src0(x,y) - src1(x,y) |`
Parameters
 [in] src0[] Pointer to array containing first input image (UQ8.0) [in] src0_addr[] Pointer to structure containing dimensional information of src0 [in] src1[] Pointer to array containing second input image (UQ8.0) [in] src1_addr[] Pointer to structure containing dimensional information of src1 [out] dst[] Pointer to array containing output image (UQ8.0) [in] dst_addr[] Pointer to structure containing dimensional information of dst
Assumptions:
• I/O buffer pointers are assumed to be not aliased.
Performance Considerations:
• For best performance, the following parameter settings are recommended:
• Set widths equal to strides
• Align all pointers to 8 byte boundaries
• Set all stride values to a multiple of 8
• Set all width values to a multiple of 16

## ◆ VXLIB_absDiff_i8u_i8u_o8u_checkParams()

 VXLIB_STATUS VXLIB_absDiff_i8u_i8u_o8u_checkParams ( const uint8_t src0[], const VXLIB_bufParams2D_t * src0_addr, const uint8_t src1[], const VXLIB_bufParams2D_t * src1_addr, const uint8_t dst[], const VXLIB_bufParams2D_t * dst_addr )
Description:
Checks the parameters for programming errors for the VXLIB_absDiff_i8u_i8u_o8u function.
Method: