public class DISOpticalFlow extends DenseOpticalFlow
Modifier and Type | Field and Description |
---|---|
static int |
PRESET_FAST |
static int |
PRESET_MEDIUM |
static int |
PRESET_ULTRAFAST |
Modifier | Constructor and Description |
---|---|
protected |
DISOpticalFlow(long addr) |
Modifier and Type | Method and Description |
---|---|
static DISOpticalFlow |
__fromPtr__(long addr) |
static DISOpticalFlow |
create()
Creates an instance of DISOpticalFlow
|
static DISOpticalFlow |
create(int preset)
Creates an instance of DISOpticalFlow
|
protected void |
finalize() |
int |
getFinestScale()
Finest level of the Gaussian pyramid on which the flow is computed (zero level
corresponds to the original image resolution).
|
int |
getGradientDescentIterations()
Maximum number of gradient descent iterations in the patch inverse search stage.
|
int |
getPatchSize()
Size of an image patch for matching (in pixels).
|
int |
getPatchStride()
Stride between neighbor patches.
|
boolean |
getUseMeanNormalization()
Whether to use mean-normalization of patches when computing patch distance.
|
boolean |
getUseSpatialPropagation()
Whether to use spatial propagation of good optical flow vectors.
|
float |
getVariationalRefinementAlpha()
Weight of the smoothness term
SEE: setVariationalRefinementAlpha
|
float |
getVariationalRefinementDelta()
Weight of the color constancy term
SEE: setVariationalRefinementDelta
|
float |
getVariationalRefinementGamma()
Weight of the gradient constancy term
SEE: setVariationalRefinementGamma
|
int |
getVariationalRefinementIterations()
Number of fixed point iterations of variational refinement per scale.
|
void |
setFinestScale(int val)
getFinestScale SEE: getFinestScale
|
void |
setGradientDescentIterations(int val)
getGradientDescentIterations SEE: getGradientDescentIterations
|
void |
setPatchSize(int val)
getPatchSize SEE: getPatchSize
|
void |
setPatchStride(int val)
getPatchStride SEE: getPatchStride
|
void |
setUseMeanNormalization(boolean val)
getUseMeanNormalization SEE: getUseMeanNormalization
|
void |
setUseSpatialPropagation(boolean val)
getUseSpatialPropagation SEE: getUseSpatialPropagation
|
void |
setVariationalRefinementAlpha(float val)
getVariationalRefinementAlpha SEE: getVariationalRefinementAlpha
|
void |
setVariationalRefinementDelta(float val)
getVariationalRefinementDelta SEE: getVariationalRefinementDelta
|
void |
setVariationalRefinementGamma(float val)
getVariationalRefinementGamma SEE: getVariationalRefinementGamma
|
void |
setVariationalRefinementIterations(int val)
getGradientDescentIterations SEE: getGradientDescentIterations
|
calc, collectGarbage
clear, empty, getDefaultName, getNativeObjAddr, save
public static final int PRESET_ULTRAFAST
public static final int PRESET_FAST
public static final int PRESET_MEDIUM
public static DISOpticalFlow __fromPtr__(long addr)
public static DISOpticalFlow create(int preset)
preset
- one of PRESET_ULTRAFAST, PRESET_FAST and PRESET_MEDIUMpublic static DISOpticalFlow create()
public boolean getUseMeanNormalization()
public boolean getUseSpatialPropagation()
public float getVariationalRefinementAlpha()
public float getVariationalRefinementDelta()
public float getVariationalRefinementGamma()
public int getFinestScale()
public int getGradientDescentIterations()
public int getPatchSize()
public int getPatchStride()
public int getVariationalRefinementIterations()
public void setFinestScale(int val)
val
- automatically generatedpublic void setGradientDescentIterations(int val)
val
- automatically generatedpublic void setPatchSize(int val)
val
- automatically generatedpublic void setPatchStride(int val)
val
- automatically generatedpublic void setUseMeanNormalization(boolean val)
val
- automatically generatedpublic void setUseSpatialPropagation(boolean val)
val
- automatically generatedpublic void setVariationalRefinementAlpha(float val)
val
- automatically generatedpublic void setVariationalRefinementDelta(float val)
val
- automatically generatedpublic void setVariationalRefinementGamma(float val)
val
- automatically generatedpublic void setVariationalRefinementIterations(int val)
val
- automatically generatedprotected void finalize() throws Throwable
finalize
in class DenseOpticalFlow
Throwable
Copyright © 2020. All rights reserved.