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
Different method to generate gradients.
VPINormType
Defines the magnitude of vectors.
int32_t gradientSize
Gradient window size.
VPIGradientMethod gradMethod
Specify the method used to generate gradient from the input image.
VPINormType normType
Determine the norm to calculate the gradient intensity.
VPIStatus vpiInitCannyEdgeDetectorParams(VPICannyEdgeDetectorParams *params)
Initialize vpiInitCannyEdgeDetectorParams with default values.
VPIStatus vpiSubmitCannyEdgeDetector(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage input, VPIImage output, float thresholdStrong, float thresholdWeak, float edgeValue, float nonEdgeValue, const VPICannyEdgeDetectorParams *params)
Runs the canny edge detector algorithm over an image.
VPIStatus vpiCreateCannyEdgeDetector(uint64_t backends, int32_t imageWidth, int32_t imageHeight, VPIPayload *payload)
Creates payload for vpiSubmitCannyEdgeDetector.
Structure that defines the parameters for vpiSubmitCannyEdgeDetector.
struct VPIImageImpl * VPIImage
A handle to an image.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
struct VPIStreamImpl * VPIStream
A handle to a stream.