Class ConfigHoughBinary
java.lang.Object
boofcv.factory.feature.detect.line.ConfigHoughBinary
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
HoughTransformBinary
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Approach used to compute a binary image -
Field Summary
Modifier and TypeFieldDescriptionApproach used to compute a binary imageint
Radius for local maximum suppression.int
Maximum number of lines to return.double
If two lines have a slope within this tolerance (radians) then they can be merged.double
If two lines are within this distance of each other then they can be merged.Minimum number of counts for detected line.How the gradient is thresholded ifConfigHoughBinary.Binarization.EDGE
is selectedHow the image is thresholded ifConfigHoughBinary.Binarization.IMAGE
is selected -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.setTo
(ConfigHoughBinary 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
-
binarization
Approach used to compute a binary image -
thresholdImage
How the image is thresholded ifConfigHoughBinary.Binarization.IMAGE
is selected -
thresholdEdge
How the gradient is thresholded ifConfigHoughBinary.Binarization.EDGE
is selected -
localMaxRadius
public int localMaxRadiusRadius for local maximum suppression. Try 2. -
minCounts
Minimum number of counts for detected line. This value is critical to speed. If absolute it will be the number of counts in a cell. If relative it will be relative to the total area of the transform image. -
maxLines
public int maxLinesMaximum number of lines to return. If ≤ 0 it will return all -
mergeAngle
public double mergeAngleIf two lines have a slope within this tolerance (radians) then they can be merged. -
mergeDistance
public double mergeDistanceIf two lines are within this distance of each other then they can be merged. units = pixels.
-
-
Constructor Details
-
ConfigHoughBinary
public ConfigHoughBinary() -
ConfigHoughBinary
public ConfigHoughBinary(int maxLines)
-
-
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
-