hbVPBoxFilter

typedef struct { int8_t kernelHeight; int8_t kernelWidth; int8_t pointLocX; int8_t pointLocY; int8_t normalize; int8_t borderType; } hbVPBoxFilterParam;

BoxFilter operator parameter.

  • Member

    Member NameDescription
    kernelHeightThe height of the filter kernel, the value is an odd number between [3,31) and the kernel height and width are equal.
    kernelWidthThe width of the filter kernel, the value is an odd number between [3,31) and the kernel width and height are equal.
    pointLocXReserved parameter.
    pointLocYReserved parameter.
    normalizeReserved parameter.
    borderTypeThe fill type supports type in hbVPBorderType .
int32_t hbVPBoxFilter(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPBoxFilterParam const *boxFilterParam);

The API for calling the boxFilter.

  • 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, format supports Y.
    • [in] boxFilterParam Operator parameter.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.