OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.VideoModule.VariationalRefinement Class Reference

Variational optical flow refinement. More...

Public Member Functions

void calcUV (Mat I0, Mat I1, Mat flow_u, Mat flow_v)
 calc function overload to handle separate horizontal (u) and vertical (v) flow components (to avoid extra splits/merges)
 
float getAlpha ()
 Weight of the smoothness term.
 
float getDelta ()
 Weight of the color constancy term.
 
float getEpsilon ()
 Norm value shift for robust penalizer.
 
int getFixedPointIterations ()
 Number of outer (fixed-point) iterations in the minimization procedure.
 
float getGamma ()
 Weight of the gradient constancy term.
 
float getOmega ()
 Relaxation factor in SOR.
 
int getSorIterations ()
 Number of inner successive over-relaxation (SOR) iterations in the minimization procedure to solve the respective linear system.
 
void setAlpha (float val)
 
void setDelta (float val)
 
void setEpsilon (float val)
 
void setFixedPointIterations (int val)
 
void setGamma (float val)
 
void setOmega (float val)
 
void setSorIterations (int val)
 
- Public Member Functions inherited from OpenCVForUnity.VideoModule.DenseOpticalFlow
void calc (Mat I0, Mat I1, Mat flow)
 Calculates an optical flow.
 
void collectGarbage ()
 Releases all inner buffers.
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new VariationalRefinement __fromPtr__ (IntPtr addr)
 
static VariationalRefinement create ()
 Creates an instance of VariationalRefinement.
 
- Static Public Member Functions inherited from OpenCVForUnity.VideoModule.DenseOpticalFlow
static new DenseOpticalFlow __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.VideoModule.DenseOpticalFlow
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.VideoModule.DenseOpticalFlow
- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

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 following functional: \($E(U) = \int_{\Omega} \delta \Psi(E_I) + \gamma \Psi(E_G) + \alpha \Psi(E_S) \)$, where \($E_I,E_G,E_S\)$ are color constancy, gradient constancy and smoothness terms respectively. \($\Psi(s^2)=\sqrt{s^2+\epsilon^2}\)$ is a robust penalizer to limit the influence of outliers. A complete formulation and a description of the minimization procedure can be found in [Brox2004]

Member Function Documentation

◆ __fromPtr__()

static new VariationalRefinement OpenCVForUnity.VideoModule.VariationalRefinement.__fromPtr__ ( IntPtr addr)
static

◆ calcUV()

void OpenCVForUnity.VideoModule.VariationalRefinement.calcUV ( Mat I0,
Mat I1,
Mat flow_u,
Mat flow_v )

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

◆ create()

static VariationalRefinement OpenCVForUnity.VideoModule.VariationalRefinement.create ( )
static

Creates an instance of VariationalRefinement.

◆ Dispose()

override void OpenCVForUnity.VideoModule.VariationalRefinement.Dispose ( bool disposing)
protectedvirtual

◆ getAlpha()

float OpenCVForUnity.VideoModule.VariationalRefinement.getAlpha ( )

Weight of the smoothness term.

See also
setAlpha

◆ getDelta()

float OpenCVForUnity.VideoModule.VariationalRefinement.getDelta ( )

Weight of the color constancy term.

See also
setDelta

◆ getEpsilon()

float OpenCVForUnity.VideoModule.VariationalRefinement.getEpsilon ( )

Norm value shift for robust penalizer.

See also
setEpsilon

◆ getFixedPointIterations()

int OpenCVForUnity.VideoModule.VariationalRefinement.getFixedPointIterations ( )

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

See also
setFixedPointIterations

◆ getGamma()

float OpenCVForUnity.VideoModule.VariationalRefinement.getGamma ( )

Weight of the gradient constancy term.

See also
setGamma

◆ getOmega()

float OpenCVForUnity.VideoModule.VariationalRefinement.getOmega ( )

Relaxation factor in SOR.

See also
setOmega

◆ getSorIterations()

int OpenCVForUnity.VideoModule.VariationalRefinement.getSorIterations ( )

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

See also
setSorIterations

◆ setAlpha()

void OpenCVForUnity.VideoModule.VariationalRefinement.setAlpha ( float val)

Weight of the smoothness term.

See also
getAlpha

◆ setDelta()

void OpenCVForUnity.VideoModule.VariationalRefinement.setDelta ( float val)

Weight of the color constancy term.

See also
getDelta

◆ setEpsilon()

void OpenCVForUnity.VideoModule.VariationalRefinement.setEpsilon ( float val)

Norm value shift for robust penalizer.

See also
getEpsilon

◆ setFixedPointIterations()

void OpenCVForUnity.VideoModule.VariationalRefinement.setFixedPointIterations ( int val)

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

See also
getFixedPointIterations

◆ setGamma()

void OpenCVForUnity.VideoModule.VariationalRefinement.setGamma ( float val)

Weight of the gradient constancy term.

See also
getGamma

◆ setOmega()

void OpenCVForUnity.VideoModule.VariationalRefinement.setOmega ( float val)

Relaxation factor in SOR.

See also
getOmega

◆ setSorIterations()

void OpenCVForUnity.VideoModule.VariationalRefinement.setSorIterations ( int val)

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

See also
getSorIterations

The documentation for this class was generated from the following file: