Class ConfigHoughBinary
java.lang.Object
boofcv.factory.feature.detect.line.ConfigHoughBinary
- All Implemented Interfaces:
Configuration,Serializable
Configuration for
HoughTransformBinary- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumApproach used to compute a binary image -
Field Summary
FieldsModifier and TypeFieldDescriptionApproach used to compute a binary imageintRadius for local maximum suppression.intMaximum number of lines to return.doubleIf two lines have a slope within this tolerance (radians) then they can be merged.doubleIf 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.EDGEis selectedHow the image is thresholded ifConfigHoughBinary.Binarization.IMAGEis selected -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks 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, waitMethods 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.IMAGEis selected -
thresholdEdge
How the gradient is thresholded ifConfigHoughBinary.Binarization.EDGEis 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:ConfigurationChecks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidityin interfaceConfiguration
-