OpenCV for Unity
2.6.3
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.
|
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) 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) |
float | getEpsilon () |
Norm value shift for robust penalizer. More... | |
void | setEpsilon (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] |
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]
|
static |
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)
|
static |
Creates an instance of VariationalRefinement.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.VideoModule.DenseOpticalFlow.
float OpenCVForUnity.VideoModule.VariationalRefinement.getAlpha | ( | ) |
Weight of the smoothness term.
float OpenCVForUnity.VideoModule.VariationalRefinement.getDelta | ( | ) |
Weight of the color constancy term.
float OpenCVForUnity.VideoModule.VariationalRefinement.getEpsilon | ( | ) |
Norm value shift for robust penalizer.
int OpenCVForUnity.VideoModule.VariationalRefinement.getFixedPointIterations | ( | ) |
Number of outer (fixed-point) iterations in the minimization procedure.
float OpenCVForUnity.VideoModule.VariationalRefinement.getGamma | ( | ) |
Weight of the gradient constancy term.
float OpenCVForUnity.VideoModule.VariationalRefinement.getOmega | ( | ) |
Relaxation factor in SOR.
int OpenCVForUnity.VideoModule.VariationalRefinement.getSorIterations | ( | ) |
Number of inner successive over-relaxation (SOR) iterations in the minimization procedure to solve the respective linear system.
void OpenCVForUnity.VideoModule.VariationalRefinement.setAlpha | ( | float | val | ) |
Weight of the smoothness term.
void OpenCVForUnity.VideoModule.VariationalRefinement.setDelta | ( | float | val | ) |
Weight of the color constancy term.
void OpenCVForUnity.VideoModule.VariationalRefinement.setEpsilon | ( | float | val | ) |
Norm value shift for robust penalizer.
void OpenCVForUnity.VideoModule.VariationalRefinement.setFixedPointIterations | ( | int | val | ) |
Number of outer (fixed-point) iterations in the minimization procedure.
void OpenCVForUnity.VideoModule.VariationalRefinement.setGamma | ( | float | val | ) |
Weight of the gradient constancy term.
void OpenCVForUnity.VideoModule.VariationalRefinement.setOmega | ( | float | val | ) |
Relaxation factor in SOR.
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.