56 #ifndef NV_VPI_ALGORITHMS_CANNY_EDGE_DETECTOR_H
57 #define NV_VPI_ALGORITHMS_CANNY_EDGE_DETECTOR_H
68 #include "../Export.h"
69 #include "../Status.h"
193 VPIImage output,
float thresholdStrong,
float thresholdWeak,
194 float edgeValue,
float nonEdgeValue,
VPIGradientMethod
生成梯度的不同方法。
int32_t gradientSize
梯度窗口大小。
VPIGradientMethod gradMethod
指定用于从输入图像生成梯度的方法。
VPINormType normType
确定用于计算梯度强度的范数。
VPIStatus vpiInitCannyEdgeDetectorParams(VPICannyEdgeDetectorParams *params)
使用默认值初始化 vpiInitCannyEdgeDetectorParams。
VPIStatus vpiSubmitCannyEdgeDetector(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage input, VPIImage output, float thresholdStrong, float thresholdWeak, float edgeValue, float nonEdgeValue, const VPICannyEdgeDetectorParams *params)
在图像上运行 canny 边缘检测器算法。
VPIStatus vpiCreateCannyEdgeDetector(uint64_t backends, int32_t imageWidth, int32_t imageHeight, VPIPayload *payload)
为 vpiSubmitCannyEdgeDetector 创建负载。
定义 vpiSubmitCannyEdgeDetector 参数的结构体。
struct VPIImageImpl * VPIImage
图像的句柄。
struct VPIPayloadImpl * VPIPayload
算法负载的句柄。
struct VPIStreamImpl * VPIStream
流的句柄。