hbVPThreshold

typedef enum { HB_VP_THRESH_TOZERO = 3, } hbVPThresholdType;

Threshold算子参数。

typedef struct { float64_t thresh; float64_t maxVal; int8_t type; } hbVPThresholdParam;

Threshold算子参数。

  • 成员

    成员名称描述
    thresh阈值,值小于等于255。
    maxVal保留参数。
    type阈值类型,支持hbVPThresholdType中的类型。
int32_t hbVPThreshold(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPThresholdParam *thresholdParam);

调用Threshold API。

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