hbVPLaplacianFilter

typedef struct hbVPLaplacianFilterParam { int8_t kernelSize; int8_t borderType; int8_t normalize; } hbVPLaplacianFilterParam;

LaplacianFilter算子参数。

  • 成员

    成员名称描述
    kernelSize滤波核大小,支持大小为 1 。
    borderType填充类型,支持 hbVPBorderType 中的类型。
    normalize归一化,非零表示为真。
int32_t hbVPLaplacianFilter(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPLaplacianFilterParam const *laplacianParam);

调用LaplacianFilter API。

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