hbVPCanny

typedef enum {
    HB_VP_NORM_L1 = 1,
} hbVPCannyNorm;

Canny operator parameter.

  • Member

    Enumeration NameDescription
    HB_VP_NORM_L1norm L1 filter.
typedef struct {
    uint32_t     threshold1;
    uint32_t     threshold2;
    int8_t       kernelSize;
    int8_t       norm;
    int8_t       overlap;
} hbVPCannyParam;

Canny operator parameter.

  • Member

    Member NameDescription
    threshold1Low thresholds.
    threshold2High thresholds.
    kernelSizeFilter kernel size, supported sizes are 3, 5, or 7.
    normSupports the types in hbVPCannyNorm.
    overlapReserved parameter.
int32_t hbVPCanny(hbUCPTaskHandle_t *taskHandle,
                  hbVPImage *dstImg,
                  hbVPImage const *srcImg,
                  hbVPCannyParam const *cannyParam);

The API for calling the Canny.

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