Package boofcv.factory.shape
Class ConfigRefinePolygonLineToImage
java.lang.Object
boofcv.factory.shape.ConfigRefinePolygonLineToImage
- All Implemented Interfaces:
Configuration,Serializable
Configuration parameters for
RefinePolygonToGrayLine- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleConvergence tolerance in pixelsdoubleHow far away in pixels it will start sampling the line from a corner.intNumber of times along the line it will be sampleddoubleMaximum number of pixels a corner can be adjusted in a single iteration.intMaximum number of iterationsintNumber of points tangent to the line in each direction it samples. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
cornerOffset
public double cornerOffsetHow far away in pixels it will start sampling the line from a corner. Corners can become highly aliased with ambiguous borders. -
lineSamples
public int lineSamplesNumber of times along the line it will be sampled -
sampleRadius
public int sampleRadiusNumber of points tangent to the line in each direction it samples. In total the number of samples along a line will be lineSamples*(2*sampleRadius+1) -
maxIterations
public int maxIterationsMaximum number of iterations -
convergeTolPixels
public double convergeTolPixelsConvergence tolerance in pixels -
maxCornerChangePixel
public double maxCornerChangePixelMaximum number of pixels a corner can be adjusted in a single iteration. This becomes important with very small shapes and can prevent divergence.
-
-
Constructor Details
-
ConfigRefinePolygonLineToImage
public ConfigRefinePolygonLineToImage()
-
-
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
-
toString
-