|
OpenCV for Unity 3.0.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.12.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) | |
| 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] |
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.