hbVPErode

typedef struct {
  int8_t pointLocX;
  int8_t pointLocY;
  int8_t iterations;
  int8_t borderType;
  uint8_t borderValue;
} hbVPErodeParam;

Erode operator parameter.

  • Member

    Member NameDescription
    pointLocXReserved parameter.
    pointLocYReserved parameter.
    iterationsReserved parameter.
    borderTypeThe fill type supports type in hbVPBorderType.
    borderValueReserved parameter.
int32_t hbVPErode(hbUCPTaskHandle_t *taskHandle,
                  hbVPImage *dstImg,
                  hbVPImage const *srcImg,
                  hbVPFilterKernel const *erodeKernel,
                  hbVPErodeParam const *erodeParam);

The API for calling the Erode.

  • Parameter
    • [out] taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.
    • [out] dstImg The output picture, type, format and size are the same as the input picture.
    • [in] srcImg The input picture type supports U8C1 and format supports Y.
    • [in] erodeKernel The operator processing kernel type supports U8C1 with a positive odd width and height less than or equal to 9.
    • [in] erodeParam Operator parameter.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.