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
FieldsModifier and TypeFieldDescriptionfloatWeights importance of image brightness error and velocity smoothness.floatConvergence tolerance for inner loop.Type of interpolation used.intMaximum number of iterations in the inner loop.intNumber of warps which it will apply.intMaximum number of layers in the pyramiddoubleChange in scale between each layer.doubleAmount of blur applied to each layer in the pyramid.floatSOR relaxation parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ConfigurationChecks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidityin interfaceConfiguration
-