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
数组的句柄。
int32_t numIterations
指定最大迭代次数。
float epsilon
指定终止算法的最小误差阈值。
VPIEpsilonType epsilonType
指定跟踪误差类型。
int32_t windowDimension
指定在其上执行算法的窗口大小。
uint32_t useInitialFlow
当此标志不为 0 时,使用存储在当前帧关键点数组中的初始估计值,...
uint32_t termination
指定终止条件。
VPIStatus vpiSubmitOpticalFlowPyrLK(VPIStream stream, uint64_t backend, VPIPayload payload, VPIPyramid prevPyr, VPIPyramid curPyr, VPIArray prevPts, VPIArray curPts, VPIArray trackingStatus, const VPIOpticalFlowPyrLKParams *params)
在两个帧上运行金字塔 LK 光流。
VPIStatus vpiInitOpticalFlowPyrLKParams(uint64_t backends, VPIOpticalFlowPyrLKParams *params)
使用默认值初始化 VPIOpticalFlowPyrLKParams。
VPIStatus vpiCreateOpticalFlowPyrLK(uint64_t backends, int32_t width, int32_t height, VPIImageFormat fmt, int32_t levels, float scale, VPIPayload *payload)
为 vpiSubmitOpticalFlowPyrLK 创建有效载荷。
@ VPI_LK_ERROR_L1
前一个特征和下一个特征之间的 L1 距离。
定义 vpiSubmitOpticalFlowPyrLK 参数的结构体。
struct VPIPayloadImpl * VPIPayload
算法有效载荷的句柄。
struct VPIPyramidImpl * VPIPyramid
图像金字塔的句柄。
struct VPIStreamImpl * VPIStream
流的句柄。