Functions
VXLIB_erode_3x3_i8u_o8u

Functions

VXLIB_STATUS VXLIB_erode_3x3_i8u_o8u (const uint8_t src[restrict], const VXLIB_bufParams2D_t *src_addr, uint8_t dst[restrict], const VXLIB_bufParams2D_t *dst_addr)
 
VXLIB_STATUS VXLIB_erode_3x3_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)
 

Detailed Description

Function Documentation

◆ VXLIB_erode_3x3_i8u_o8u()

VXLIB_STATUS VXLIB_erode_3x3_i8u_o8u ( const uint8_t  src[restrict],
const VXLIB_bufParams2D_t *  src_addr,
uint8_t  dst[restrict],
const VXLIB_bufParams2D_t *  dst_addr 
)
Description:
Implements 3x3 Erosion, which shrinks the white space in a boolean image.
Method:
The output pixels is the min value of the 3x3 neighborhood of the input pixel.
Parameters
[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
Assumptions:
  • I/O buffer pointers are assumed to be not aliased.
  • Output height should be == (Input height - 2)
  • Output width should be == (Input width - 2) OR (Input width)
Performance Considerations:
  • For best performance, the following parameter settings are recommended:
    • Align all pointers to 8 byte boundaries
    • Set all stride values to a multiple of 8
    • Set output width values to a multiple of 16
    • Set widths equal to each other and equal to strides (allows processing over whole image in single loop)

◆ VXLIB_erode_3x3_i8u_o8u_checkParams()

VXLIB_STATUS VXLIB_erode_3x3_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 
)
Description:
Checks the parameters for programming errors for the VXLIB_erode_3x3_i8u_o8u function.
Method:
The following checks are made:
  • There shall be no NULL pointers
  • Output height should be == (Input height - 2)
  • Output width should be <= Input width
  • The strides of each image shall be equal to or greater than the x dimension
Parameters
[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

Copyright 2022, Texas Instruments Incorporated