56 #ifndef NV_VPI_ALGORITHMS_OPTICALFLOWDENSE_H
57 #define NV_VPI_ALGORITHMS_OPTICALFLOWDENSE_H
68 #include "../Export.h"
69 #include "../ImageFormat.h"
70 #include "../Pyramid.h"
71 #include "../Status.h"
151 #if NV_VPI_VERSION_API_AT_MOST(2, 2)
157 VPIImageFormat inputFmt,
const int32_t *gridSize, int32_t numLevels,
struct VPIImageImpl * VPIImage
A handle to an image.
VPIStatus vpiCreateOpticalFlowDense(uint64_t backends, int32_t width, int32_t height, VPIImageFormat inputFmt, const int32_t *gridSize, int32_t numLevels, VPIOpticalFlowQuality quality, VPIPayload *payload)
Creates payload for vpiSubmitOpticalFlowDense.
VPIStatus vpiOpticalFlowDenseGetSGMParams(VPIPayload payload, VPIOpticalFlowDenseSGMParams *sgmParams)
Retrieves the semi-global matching parameters set up in the Dense Optical Flow payload.
VPIStatus vpiOpticalFlowDenseSetSGMParams(VPIPayload payload, const VPIOpticalFlowDenseSGMParams *sgmParams)
Sets the semi-global matching parameters to be used by the Dense Optical Flow operations with the giv...
VPIStatus vpiSubmitOpticalFlowDense(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage prevImg, VPIImage curImg, VPIImage mvImg)
Runs dense Optical Flow on two frames, outputting motion vectors.
VPIStatus vpiSubmitOpticalFlowDensePyramid(VPIStream stream, uint64_t backend, VPIPayload payload, VPIPyramid prevPyr, VPIPyramid curPyr, VPIImage mvImg)
Runs dense Optical Flow on two frames, outputting motion vectors.
Dense optical flow parameters for semi-global matching pass.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
struct VPIPyramidImpl * VPIPyramid
A handle to an image pyramid.
#define VPI_MAX_PYRAMID_LEVEL_COUNT
Maximum number of pyramid levels.
struct VPIStreamImpl * VPIStream
A handle to a stream.
VPIOpticalFlowQuality
Defines the quality of the optical flow algorithm.