Table of Contents

Method Create

Namespace
OpenCvSharp.OptFlow
Assembly
OpenCvSharp.dll

Create(double, double, double, int, int, double, int, int, double, double, int, bool)

Creates instance of cv::optflow::DualTVL1OpticalFlow.

public static DualTVL1OpticalFlow Create(double tau = 0.25, double lambda = 0.15, double theta = 0.3, int nscales = 5, int warps = 5, double epsilon = 0.01, int innerIterations = 30, int outerIterations = 10, double scaleStep = 0.8, double gamma = 0, int medianFiltering = 5, bool useInitialFlow = false)

Parameters

tau double

Time step of the numerical scheme.

lambda double

Weight parameter for the data term, attachment parameter.

theta double

Weight parameter for (u - v)^2, tightness parameter.

nscales int

Number of scales used to create the pyramid of images.

warps int

Number of warpings per scale.

epsilon double

Stopping criterion threshold used in the numerical scheme.

innerIterations int

Inner iterations (between outlier filtering) used in the numerical scheme.

outerIterations int

Outer iterations (number of inner loops) used in the numerical scheme.

scaleStep double

Step between scales (<1).

gamma double

Coefficient for additional illumination variation term.

medianFiltering int

Median filter kernel size (1 = no filter) (3 or 5).

useInitialFlow bool

Use initial flow.

Returns

DualTVL1OpticalFlow