hbVPBoxFilter

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

BoxFilter算子参数。

  • 成员

    成员名称描述
    kernelHeight滤波核的高度,值为[3,31)间的奇数,核高和宽相等。
    kernelWidth滤波核的宽度,值为[3,31)间的奇数,核宽和高相等。
    pointLocX保留参数。
    pointLocY保留参数。
    normalize保留参数。
    borderType填充类型,支持 hbVPBorderType 中的类型。
int32_t hbVPBoxFilter(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPBoxFilterParam const *boxFilterParam);

调用boxFilter API。

  • 参数
    • [out] taskHandle 任务句柄,负责算子与UCP架构的交互。
    • [out] dstImg 输出图像,type、format和大小与输入图像一致。
    • [in] srcImg 输入图像,type支持U8C1,format支持Y。
    • [in] boxFilterParam 算子参数。
  • 返回值
    • 返回 0 则表示API成功执行,否则执行失败。