Package boofcv.factory.flow
Class ConfigHornSchunckPyramid
java.lang.Object
boofcv.factory.flow.ConfigHornSchunckPyramid
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
HornSchunckPyramid
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfloat
Weights importance of image brightness error and velocity smoothness.float
Convergence tolerance for inner loop.Type of interpolation used.int
Maximum number of iterations in the inner loop.int
Number of warps which it will apply.int
Maximum number of layers in the pyramiddouble
Change in scale between each layer.double
Amount of blur applied to each layer in the pyramid.float
SOR relaxation parameter. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
alpha
public float alphaWeights importance of image brightness error and velocity smoothness. Larger values which prefer a smooth flow. -
SOR_RELAXATION
public float SOR_RELAXATIONSOR relaxation parameter. -
numWarps
public int numWarpsNumber of warps which it will apply. -
maxInnerIterations
public int maxInnerIterationsMaximum number of iterations in the inner loop. -
convergeTolerance
public float convergeToleranceConvergence tolerance for inner loop. Specified in per pixel error. -
pyrScale
public double pyrScaleChange in scale between each layer. Try 0.7 -
pyrSigma
public double pyrSigmaAmount of blur applied to each layer in the pyramid. If sigma ≤ 0 then no blur is applied. -
pyrMaxLayers
public int pyrMaxLayersMaximum number of layers in the pyramid -
interpolation
Type of interpolation used. Bilinear recommended
-
-
Constructor Details
-
ConfigHornSchunckPyramid
public ConfigHornSchunckPyramid() -
ConfigHornSchunckPyramid
public ConfigHornSchunckPyramid(float alpha, int maxInnerIterations)
-
-
Method Details
-
setTo
-
checkValidity
public void checkValidity()Description copied from interface:Configuration
Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidity
in interfaceConfiguration
-