hbVPThreshold

typedef enum {
  HB_VP_THRESH_TOZERO = 3,
} hbVPThresholdType;

Threshold operator parameter.

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

Threshold operator parameter.

  • Member

    Member NameDescription
    threshThreshold, value less than or equal to 255.
    maxValReserved parameter.
    typeThresholdType, supports the types in hbVPThresholdType.
int32_t hbVPThreshold(hbUCPTaskHandle_t *taskHandle,
                      hbVPImage *dstImg,
                      hbVPImage const *srcImg,
                      hbVPThresholdParam *thresholdParam);

The API for calling the Threshold API.

  • Parameter
    • [out] taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.
    • [out] dstImg The output picture, support U8C1, format Y,type, and size are the same as the input picture.
    • [in] srcImg The input picture type supports U8C1 and format supports Y.
    • [in] thresholdParam Operator parameter.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.