56 #ifndef NV_VPI_ALGORITHMS_OPTICALFLOWPYRLK_H
57 #define NV_VPI_ALGORITHMS_OPTICALFLOWPYRLK_H
68 #include "../Export.h"
69 #include "../ImageFormat.h"
70 #include "../Status.h"
149 #if NV_VPI_VERSION_API_AT_MOST(3, 1)
150 __asm__(
".symver vpiInitOpticalFlowPyrLKParams,vpiInitOpticalFlowPyrLKParams@VPI_3.0");
192 int32_t levels,
float scale,
VPIPayload *payload);
struct VPIArrayImpl * VPIArray
A handle to an array.
int32_t numIterations
Specifies the maximum number of iterations.
float epsilon
Specifies minimum error threshold for terminating the algorithm.
VPIEpsilonType epsilonType
Specifies the tracking error type.
int32_t windowDimension
Specifies the size of the window on which to perform the algorithm.
uint32_t useInitialFlow
Uses initial estimations stored in current frame keypoints array when this flag is not 0,...
uint32_t termination
Specifies the termination criteria.
VPIEpsilonType
Defines the error measurement types.
VPIStatus vpiSubmitOpticalFlowPyrLK(VPIStream stream, uint64_t backend, VPIPayload payload, VPIPyramid prevPyr, VPIPyramid curPyr, VPIArray prevPts, VPIArray curPts, VPIArray trackingStatus, const VPIOpticalFlowPyrLKParams *params)
Runs Pyramidal LK Optical Flow on two frames.
VPIStatus vpiInitOpticalFlowPyrLKParams(uint64_t backends, VPIOpticalFlowPyrLKParams *params)
Initializes VPIOpticalFlowPyrLKParams with default values.
VPIStatus vpiCreateOpticalFlowPyrLK(uint64_t backends, int32_t width, int32_t height, VPIImageFormat fmt, int32_t levels, float scale, VPIPayload *payload)
Creates payload for vpiSubmitOpticalFlowPyrLK.
@ VPI_LK_ERROR_L1
L1 distance between previous feature and a next feature.
Structure that defines the parameters for vpiSubmitOpticalFlowPyrLK.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
struct VPIPyramidImpl * VPIPyramid
A handle to an image pyramid.
struct VPIStreamImpl * VPIStream
A handle to a stream.