Class ConfigHoughGradient
java.lang.Object
boofcv.factory.feature.detect.line.ConfigHoughGradient
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
HoughTransformGradient
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionHow the gradient is thresholdedint
Lines in transform space must be a local max in a region with this radius.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.int
Minimum number of counts/votes inside the transformed image.int
Lines which are this close to the origin of the transformed image are ignored.int
Radius of mean-shift refinement. -
Constructor Summary
ConstructorDescriptionConfigHoughGradient
(int maxLines) ConfigHoughGradient
(int localMaxRadius, int minCounts, int minDistanceFromOrigin, float thresholdEdge, int maxLines) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.setTo
(ConfigHoughGradient 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
-
localMaxRadius
public int localMaxRadiusLines in transform space must be a local max in a region with this radius. Try 5; -
minCounts
public int minCountsMinimum number of counts/votes inside the transformed image. Try 5. -
minDistanceFromOrigin
public int minDistanceFromOriginLines which are this close to the origin of the transformed image are ignored. Try 5. -
maxLines
public int maxLinesMaximum number of lines to return. If ≤ 0 it will return them 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. -
refineRadius
public int refineRadiusRadius of mean-shift refinement. Set to zero to turn off. -
edgeThreshold
How the gradient is thresholded
-
-
Constructor Details
-
ConfigHoughGradient
public ConfigHoughGradient() -
ConfigHoughGradient
public ConfigHoughGradient(int maxLines) -
ConfigHoughGradient
public ConfigHoughGradient(int localMaxRadius, int minCounts, int minDistanceFromOrigin, float thresholdEdge, 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
-