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; int8_t borderType; } hbVPCannyParam;

Canny operator parameter.

  • Member

    Member NameDescription
    threshold1Low thresholds.
    threshold2High thresholds.
    kernelSizeCore sizes are supported in 3x3, 5x5 and 7x7.
    normSupports the types in hbVPCannyNorm.
    overlapReserved parameter.
    borderTypeThe fill type supports type in hbVPBorderType.
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.