Table of Contents

Class VariationalRefinement

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Variational optical flow refinement. This class implements variational refinement of the input flow field, i.e. it uses input flow to initialize the minimization of the sum of color constancy, gradient constancy and smoothness terms.

public class VariationalRefinement : DenseOpticalFlow, IDisposable
Inheritance
VariationalRefinement
Implements
Inherited Members

Properties

Alpha

Weight of the smoothness term

public float Alpha { get; set; }

Property Value

float

Delta

Weight of the color constancy term

public float Delta { get; set; }

Property Value

float

Epsilon

Norm value shift for robust penalizer

public float Epsilon { get; set; }

Property Value

float

FixedPointIterations

Number of outer (fixed-point) iterations in the minimization procedure.

public int FixedPointIterations { get; set; }

Property Value

int

Gamma

Weight of the gradient constancy term

public float Gamma { get; set; }

Property Value

float

Omega

Relaxation factor in SOR

public float Omega { get; set; }

Property Value

float

SorIterations

Number of inner successive over-relaxation (SOR) iterations in the minimization procedure to solve the respective linear system.

public int SorIterations { get; set; }

Property Value

int

Methods

CalcUV(InputArray, InputArray, InputOutputArray, InputOutputArray)

calc() function overload to handle separate horizontal (u) and vertical (v) flow components (to avoid extra splits/merges)

public virtual void CalcUV(InputArray i0, InputArray i1, InputOutputArray flowU, InputOutputArray flowV)

Parameters

i0 InputArray
i1 InputArray
flowU InputOutputArray
flowV InputOutputArray

Create()

Creates an instance of VariationalRefinement

public static VariationalRefinement Create()

Returns

VariationalRefinement