Package boofcv.factory.shape
Class ConfigEllipseDetector
java.lang.Object
boofcv.factory.shape.ConfigEllipseDetector
- All Implemented Interfaces:
Configuration
,Serializable
public class ConfigEllipseDetector extends Object implements Configuration
Configuration for
BinaryEllipseDetector
for use in FactoryShapeDetector
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description double
checkRadialDistance
Check:
Tangential distance away from contour the image is sampled when performing edge intensity check.ConnectRule
contourRule
Pixel connectivity rule for blob/contour finder.double
convergenceTol
Refinement: when the difference between two ellipses is less than this amount stop iteratingdouble
maxDistanceFromEllipse
Detector: maximum distance from the ellipse in pixelsint
maximumContour
Detector: maximum number of pixels in the contour.int
maxIterations
Refinement: maximum number of refinement iterations it will performance.double
maxMajorToMinorRatio
The maximum ratio between the major to minor ratioint
minimumContour
Detector: minimum number of pixels in the contourdouble
minimumEdgeIntensity
Check:
Threshold for minimum edge intensity.double
minimumMinorAxis
Minimum number of pixels in the minor axisint
numSampleContour
Refinement: how many points along the contour it will sample.boolean
processInternal
Detector: If true it will consider internal contours and not just externalint
refineRadialSamples
Refinement:
Determines the number of points sampled radially outwards from the line Total intensity values sampled at each point along the line is radius*2+2, and points added to line fitting is radius*2+1. -
Constructor Summary
Constructors Constructor Description ConfigEllipseDetector()
-
Method Summary
Modifier and Type Method Description void
checkValidity()
Checks to see if the configuration is valid.ConfigEllipseDetector
setTo(ConfigEllipseDetector src)
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
-
maxDistanceFromEllipse
public double maxDistanceFromEllipseDetector: maximum distance from the ellipse in pixels -
minimumContour
public int minimumContourDetector: minimum number of pixels in the contour -
maximumContour
public int maximumContourDetector: maximum number of pixels in the contour. 0 == no limit -
contourRule
Pixel connectivity rule for blob/contour finder. -
minimumMinorAxis
public double minimumMinorAxisMinimum number of pixels in the minor axis -
processInternal
public boolean processInternalDetector: If true it will consider internal contours and not just external -
maxIterations
public int maxIterationsRefinement: maximum number of refinement iterations it will performance. Set to zero to disable -
convergenceTol
public double convergenceTolRefinement: when the difference between two ellipses is less than this amount stop iterating -
numSampleContour
public int numSampleContourRefinement: how many points along the contour it will sample. Set to ≤ 0 to disable refinement -
refineRadialSamples
public int refineRadialSamplesRefinement:
Determines the number of points sampled radially outwards from the line Total intensity values sampled at each point along the line is radius*2+2, and points added to line fitting is radius*2+1. -
minimumEdgeIntensity
public double minimumEdgeIntensityCheck:
Threshold for minimum edge intensity. This should be a value which is 0 to (max-min pixel value) Set to ≤ 0 to disable check. -
checkRadialDistance
public double checkRadialDistanceCheck:
Tangential distance away from contour the image is sampled when performing edge intensity check. -
maxMajorToMinorRatio
public double maxMajorToMinorRatioThe maximum ratio between the major to minor ratio
-
-
Constructor Details
-
ConfigEllipseDetector
public ConfigEllipseDetector()
-
-
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
-