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 int getFinestScale()
public void setFinestScale(int val)
val
- automatically generatedpublic int getPatchSize()
public void setPatchSize(int val)
val
- automatically generatedpublic int getPatchStride()
public void setPatchStride(int val)
val
- automatically generatedpublic int getGradientDescentIterations()
public void setGradientDescentIterations(int val)
val
- automatically generatedpublic int getVariationalRefinementIterations()
public void setVariationalRefinementIterations(int val)
val
- automatically generatedpublic float getVariationalRefinementAlpha()
public void setVariationalRefinementAlpha(float val)
val
- automatically generatedpublic float getVariationalRefinementDelta()
public void setVariationalRefinementDelta(float val)
val
- automatically generatedpublic float getVariationalRefinementGamma()
public void setVariationalRefinementGamma(float val)
val
- automatically generatedpublic boolean getUseMeanNormalization()
public void setUseMeanNormalization(boolean val)
val
- automatically generatedpublic boolean getUseSpatialPropagation()
public void setUseSpatialPropagation(boolean val)
val
- automatically generatedpublic static DISOpticalFlow create(int preset)
preset
- one of PRESET_ULTRAFAST, PRESET_FAST and PRESET_MEDIUMpublic static DISOpticalFlow create()
protected void finalize() throws Throwable
finalize
in class DenseOpticalFlow
Throwable
Copyright © 2024. All rights reserved.