Class CudaOpticalFlowDualTvl1
DualTvl1 optical flow
public class CudaOpticalFlowDualTvl1 : SharedPtrObject, IDisposable, ICudaDenseOpticalFlow, IAlgorithm
- Inheritance
-
CudaOpticalFlowDualTvl1
- Implements
- Inherited Members
- Extension Methods
Constructors
CudaOpticalFlowDualTvl1(double, double, double, int, int, double, int, double, double, bool)
Initializes a new instance of the CudaOpticalFlowDualTvl1 class.
public CudaOpticalFlowDualTvl1(double tau = 0.25, double lambda = 0.15, double theta = 0.3, int nscales = 5, int warps = 5, double epsilon = 0.01, int iterations = 300, double scaleStep = 0.8, double gamma = 0, bool useInitialFlow = false)
Parameters
tau
doubleTime step of the numerical scheme.
lambda
doubleWeight parameter for the data term, attachment parameter. This is the most relevant parameter, which determines the smoothness of the output. The smaller this parameter is, the smoother the solutions we obtain. It depends on the range of motions of the images, so its value should be adapted to each image sequence.
theta
doubleParameter used for motion estimation. It adds a variable allowing for illumination variations Set this parameter to 1. if you have varying illumination.
nscales
intNumber of scales used to create the pyramid of images.
warps
intNumber of warpings per scale. Represents the number of times that I1(x+u0) and grad( I1(x+u0) ) are computed per scale. This is a parameter that assures the stability of the method. It also affects the running time, so it is a compromise between speed and accuracy.
epsilon
doubleStopping criterion threshold used in the numerical scheme, which is a trade-off between precision and running time. A small value will yield more accurate solutions at the expense of a slower convergence.
iterations
intStopping criterion iterations number used in the numerical scheme.
scaleStep
doubleScale step
gamma
doubleWeight parameter for (u - v)^2, tightness parameter. It serves as a link between the attachment and the regularization terms. In theory, it should have a small value in order to maintain both parts in correspondence. The method is stable for a large range of values of this parameter.
useInitialFlow
boolIf true, use initial flow.
Properties
AlgorithmPtr
Pointer to the algorithm object
public nint AlgorithmPtr { get; }
Property Value
DenseOpticalFlowPtr
Pointer to the DenseOpticalFlow object
public nint DenseOpticalFlowPtr { get; }
Property Value
Methods
DisposeObject()
Release all the unmanaged memory associated with this optical flow solver.
protected override void DisposeObject()