OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.VideoModule.VariationalRefinement Class Reference

Variational optical flow refinement. More...

Inheritance diagram for OpenCVForUnity.VideoModule.VariationalRefinement:
OpenCVForUnity.VideoModule.DenseOpticalFlow OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

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) More...
 
int getFixedPointIterations ()
 Number of outer (fixed-point) iterations in the minimization procedure. More...
 
void setFixedPointIterations (int val)
 
int getSorIterations ()
 Number of inner successive over-relaxation (SOR) iterations in the minimization procedure to solve the respective linear system. More...
 
void setSorIterations (int val)
 
float getOmega ()
 Relaxation factor in SOR. More...
 
void setOmega (float val)
 
float getAlpha ()
 Weight of the smoothness term. More...
 
void setAlpha (float val)
 
float getDelta ()
 Weight of the color constancy term. More...
 
void setDelta (float val)
 
float getGamma ()
 Weight of the gradient constancy term. More...
 
void setGamma (float val)
 
- Public Member Functions inherited from OpenCVForUnity.VideoModule.DenseOpticalFlow
void calc (Mat I0, Mat I1, Mat flow)
 Calculates an optical flow. More...
 
void collectGarbage ()
 Releases all inner buffers. More...
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
void save (string filename)
 
virtual string getDefaultName ()
 
- 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. More...
 
- 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.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- 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

◆ 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

◆ 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: