hbVPSobel

typedef struct { double scale; double delta; int8_t dx; int8_t dy; int8_t kernelSize; int8_t borderType; } hbVPSobelParam;

Sobel算子参数。

  • 成员

    成员名称描述
    scale保留参数。
    delta保留参数。
    dx导数 X 的阶。
    dy导数 Y 的阶。
    kernelSizesobel扩展核大小,支持 3 和 5 。
    borderType填充类型,支持 hbVPBorderType 中的类型。
int32_t hbVPSobel(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPSobelParam const *sobelParam);

调用Sobel API。

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