public class VariationalRefinement extends DenseOpticalFlow
Modifier | Constructor and Description |
---|---|
protected |
VariationalRefinement(long addr) |
Modifier and Type | Method and Description |
---|---|
static VariationalRefinement |
__fromPtr__(long addr) |
void |
calcUV(Mat I0,
Mat I1,
Mat flow_u,
Mat flow_v)
REF: calc function overload to handle separate horizontal (u) and vertical (v) flow components
(to avoid extra splits/merges)
|
static VariationalRefinement |
create()
Creates an instance of VariationalRefinement
|
protected void |
finalize() |
float |
getAlpha()
Weight of the smoothness term
SEE: setAlpha
|
float |
getDelta()
Weight of the color constancy term
SEE: setDelta
|
int |
getFixedPointIterations()
Number of outer (fixed-point) iterations in the minimization procedure.
|
float |
getGamma()
Weight of the gradient constancy term
SEE: setGamma
|
float |
getOmega()
Relaxation factor in SOR
SEE: setOmega
|
int |
getSorIterations()
Number of inner successive over-relaxation (SOR) iterations
in the minimization procedure to solve the respective linear system.
|
void |
setAlpha(float val)
getAlpha SEE: getAlpha
|
void |
setDelta(float val)
getDelta SEE: getDelta
|
void |
setFixedPointIterations(int val)
getFixedPointIterations SEE: getFixedPointIterations
|
void |
setGamma(float val)
getGamma SEE: getGamma
|
void |
setOmega(float val)
getOmega SEE: getOmega
|
void |
setSorIterations(int val)
getSorIterations SEE: getSorIterations
|
calc, collectGarbage
clear, empty, getDefaultName, getNativeObjAddr, save
public static VariationalRefinement __fromPtr__(long addr)
public void calcUV(Mat I0, Mat I1, Mat flow_u, Mat flow_v)
I0
- automatically generatedI1
- automatically generatedflow_u
- automatically generatedflow_v
- automatically generatedpublic int getFixedPointIterations()
public void setFixedPointIterations(int val)
val
- automatically generatedpublic int getSorIterations()
public void setSorIterations(int val)
val
- automatically generatedpublic float getOmega()
public void setOmega(float val)
val
- automatically generatedpublic float getAlpha()
public void setAlpha(float val)
val
- automatically generatedpublic float getDelta()
public void setDelta(float val)
val
- automatically generatedpublic float getGamma()
public void setGamma(float val)
val
- automatically generatedpublic static VariationalRefinement create()
protected void finalize() throws Throwable
finalize
in class DenseOpticalFlow
Throwable
Copyright © 2024. All rights reserved.