@Namespace(value="cv::optflow") public static class opencv_optflow.VariationalRefinement extends opencv_video.DenseOpticalFlow
This class implements variational refinement of the input flow field, i.e. it uses input flow to initialize the minimization of the following functional: \f$E(U) = \int_{\Omega} \delta \Psi(E_I) + \gamma \Psi(E_G) + \alpha \Psi(E_S) \f$, where \f$E_I,E_G,E_S\f$ are color constancy, gradient constancy and smoothness terms respectively. \f$\Psi(s^2)=\sqrt{s^2+\epsilon^2}\f$ is a robust penalizer to limit the influence of outliers. A complete formulation and a description of the minimization procedure can be found in \cite Brox2004
| Constructor and Description |
|---|
VariationalRefinement(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calcUV(opencv_core.GpuMat I0,
opencv_core.GpuMat I1,
opencv_core.GpuMat flow_u,
opencv_core.GpuMat flow_v) |
void |
calcUV(opencv_core.Mat I0,
opencv_core.Mat I1,
opencv_core.Mat flow_u,
opencv_core.Mat flow_v)
\brief \ref calc function overload to handle separate horizontal (u) and vertical (v) flow components
(to avoid extra splits/merges)
|
void |
calcUV(opencv_core.UMat I0,
opencv_core.UMat I1,
opencv_core.UMat flow_u,
opencv_core.UMat flow_v) |
float |
getAlpha()
\brief Weight of the smoothness term
|
float |
getDelta()
\brief Weight of the color constancy term
|
int |
getFixedPointIterations()
\brief Number of outer (fixed-point) iterations in the minimization procedure.
|
float |
getGamma()
\brief Weight of the gradient constancy term
|
float |
getOmega()
\brief Relaxation factor in SOR
|
int |
getSorIterations()
\brief Number of inner successive over-relaxation (SOR) iterations
in the minimization procedure to solve the respective linear system.
|
void |
setAlpha(float val)
\copybrief getAlpha @see getAlpha
|
void |
setDelta(float val)
\copybrief getDelta @see getDelta
|
void |
setFixedPointIterations(int val)
\copybrief getFixedPointIterations @see getFixedPointIterations
|
void |
setGamma(float val)
\copybrief getGamma @see getGamma
|
void |
setOmega(float val)
\copybrief getOmega @see getOmega
|
void |
setSorIterations(int val)
\copybrief getSorIterations @see getSorIterations
|
calc, calc, calc, collectGarbageclear, empty, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic VariationalRefinement(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public void calcUV(@ByVal
opencv_core.Mat I0,
@ByVal
opencv_core.Mat I1,
@ByVal
opencv_core.Mat flow_u,
@ByVal
opencv_core.Mat flow_v)
public void calcUV(@ByVal
opencv_core.UMat I0,
@ByVal
opencv_core.UMat I1,
@ByVal
opencv_core.UMat flow_u,
@ByVal
opencv_core.UMat flow_v)
public void calcUV(@ByVal
opencv_core.GpuMat I0,
@ByVal
opencv_core.GpuMat I1,
@ByVal
opencv_core.GpuMat flow_u,
@ByVal
opencv_core.GpuMat flow_v)
public int getFixedPointIterations()
setFixedPointIterationspublic void setFixedPointIterations(int val)
public int getSorIterations()
setSorIterationspublic void setSorIterations(int val)
public float getOmega()
setOmegapublic void setOmega(float val)
public float getAlpha()
setAlphapublic void setAlpha(float val)
public float getDelta()
setDeltapublic void setDelta(float val)
public float getGamma()
setGammapublic void setGamma(float val)
Copyright © 2018. All rights reserved.