56 #ifndef NV_VPI_ALGORITHMS_OPTICALFLOWDENSE_H
57 #define NV_VPI_ALGORITHMS_OPTICALFLOWDENSE_H
68 #include "../Export.h"
69 #include "../ImageFormat.h"
70 #include "../Status.h"
146 #if NV_VPI_VERSION_API_AT_MOST(2, 2)
152 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 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.
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.
VPIOpticalFlowQuality
Defines the quality of the optical flow algorithm.