hbVPSobel

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

Sobel operator parameter.

  • Member

    Member NameDescription
    scaleReserved parameter.
    deltaReserved parameter.
    dxThe order of derivative X.
    dyThe order of derivative Y.
    kernelSizesobel extends the core size to support 3 or 5.
    borderTypeFill type, supports types in hbVPBorderType.
int32_t hbVPSobel(hbUCPTaskHandle_t *taskHandle,
                  hbVPImage *dstImg,
                  hbVPImage const *srcImg,
                  hbVPSobelParam const *sobelParam);

The API for calling the Sobel.

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