View Source Evision.DISOpticalFlow (Evision v0.1.34)
Summary
Functions
Creates an instance of DISOpticalFlow
Creates an instance of DISOpticalFlow
Finest level of the Gaussian pyramid on which the flow is computed (zero level corresponds to the original image resolution). The final flow is obtained by bilinear upscaling.
Maximum number of gradient descent iterations in the patch inverse search stage. Higher values may improve quality in some cases.
Size of an image patch for matching (in pixels). Normally, default 8x8 patches work well enough in most cases.
Stride between neighbor patches. Must be less than patch size. Lower values correspond to higher flow quality.
Whether to use mean-normalization of patches when computing patch distance. It is turned on by default as it typically provides a noticeable quality boost because of increased robustness to illumination variations. Turn it off if you are certain that your sequence doesn't contain any changes in illumination.
Whether to use spatial propagation of good optical flow vectors. This option is turned on by default, as it tends to work better on average and can sometimes help recover from major errors introduced by the coarse-to-fine scheme employed by the DIS optical flow algorithm. Turning this option off can make the output flow field a bit smoother, however.
Weight of the smoothness term
Weight of the color constancy term
Weight of the gradient constancy term
Number of fixed point iterations of variational refinement per scale. Set to zero to disable variational refinement completely. Higher values will typically result in more smooth and high-quality flow.
setFinestScale
setGradientDescentIterations
setPatchSize
setPatchStride
setUseMeanNormalization
setUseSpatialPropagation
setVariationalRefinementAlpha
setVariationalRefinementDelta
setVariationalRefinementGamma
setVariationalRefinementIterations
Types
@type t() :: %Evision.DISOpticalFlow{ref: reference()}
Type that represents an DISOpticalFlow
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
Creates an instance of DISOpticalFlow
Keyword Arguments
preset:
int
.one of PRESET_ULTRAFAST, PRESET_FAST and PRESET_MEDIUM
Return
- retval:
Evision.DISOpticalFlow.t()
Python prototype (for reference only):
create([, preset]) -> retval
Creates an instance of DISOpticalFlow
Keyword Arguments
preset:
int
.one of PRESET_ULTRAFAST, PRESET_FAST and PRESET_MEDIUM
Return
- retval:
Evision.DISOpticalFlow.t()
Python prototype (for reference only):
create([, preset]) -> retval
Finest level of the Gaussian pyramid on which the flow is computed (zero level corresponds to the original image resolution). The final flow is obtained by bilinear upscaling.
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
int
@see setFinestScale/2
Python prototype (for reference only):
getFinestScale() -> retval
Maximum number of gradient descent iterations in the patch inverse search stage. Higher values may improve quality in some cases.
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
int
@see setGradientDescentIterations/2
Python prototype (for reference only):
getGradientDescentIterations() -> retval
Size of an image patch for matching (in pixels). Normally, default 8x8 patches work well enough in most cases.
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
int
@see setPatchSize/2
Python prototype (for reference only):
getPatchSize() -> retval
Stride between neighbor patches. Must be less than patch size. Lower values correspond to higher flow quality.
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
int
@see setPatchStride/2
Python prototype (for reference only):
getPatchStride() -> retval
Whether to use mean-normalization of patches when computing patch distance. It is turned on by default as it typically provides a noticeable quality boost because of increased robustness to illumination variations. Turn it off if you are certain that your sequence doesn't contain any changes in illumination.
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
bool
@see setUseMeanNormalization/2
Python prototype (for reference only):
getUseMeanNormalization() -> retval
Whether to use spatial propagation of good optical flow vectors. This option is turned on by default, as it tends to work better on average and can sometimes help recover from major errors introduced by the coarse-to-fine scheme employed by the DIS optical flow algorithm. Turning this option off can make the output flow field a bit smoother, however.
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
bool
@see setUseSpatialPropagation/2
Python prototype (for reference only):
getUseSpatialPropagation() -> retval
Weight of the smoothness term
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
float
@see setVariationalRefinementAlpha/2
Python prototype (for reference only):
getVariationalRefinementAlpha() -> retval
Weight of the color constancy term
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
float
@see setVariationalRefinementDelta/2
Python prototype (for reference only):
getVariationalRefinementDelta() -> retval
Weight of the gradient constancy term
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
float
@see setVariationalRefinementGamma/2
Python prototype (for reference only):
getVariationalRefinementGamma() -> retval
Number of fixed point iterations of variational refinement per scale. Set to zero to disable variational refinement completely. Higher values will typically result in more smooth and high-quality flow.
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
Return
- retval:
int
@see setGradientDescentIterations/2
Python prototype (for reference only):
getVariationalRefinementIterations() -> retval
setFinestScale
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
int
@see getFinestScale/1
Python prototype (for reference only):
setFinestScale(val) -> None
setGradientDescentIterations
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
int
@see getGradientDescentIterations/1
Python prototype (for reference only):
setGradientDescentIterations(val) -> None
setPatchSize
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
int
@see getPatchSize/1
Python prototype (for reference only):
setPatchSize(val) -> None
setPatchStride
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
int
@see getPatchStride/1
Python prototype (for reference only):
setPatchStride(val) -> None
setUseMeanNormalization
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
bool
@see getUseMeanNormalization/1
Python prototype (for reference only):
setUseMeanNormalization(val) -> None
setUseSpatialPropagation
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
bool
@see getUseSpatialPropagation/1
Python prototype (for reference only):
setUseSpatialPropagation(val) -> None
setVariationalRefinementAlpha
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
float
@see getVariationalRefinementAlpha/1
Python prototype (for reference only):
setVariationalRefinementAlpha(val) -> None
setVariationalRefinementDelta
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
float
@see getVariationalRefinementDelta/1
Python prototype (for reference only):
setVariationalRefinementDelta(val) -> None
setVariationalRefinementGamma
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
float
@see getVariationalRefinementGamma/1
Python prototype (for reference only):
setVariationalRefinementGamma(val) -> None
setVariationalRefinementIterations
Positional Arguments
- self:
Evision.DISOpticalFlow.t()
- val:
int
@see getGradientDescentIterations/1
Python prototype (for reference only):
setVariationalRefinementIterations(val) -> None