Package boofcv.abst.feature.detect.line
Class HoughGradient_to_DetectLine<I extends ImageGray<I>,D extends ImageGray<D>>
java.lang.Object
boofcv.abst.feature.detect.line.HoughGradient_to_DetectLine<I,D>
- All Implemented Interfaces:
DetectLine<I>
public class HoughGradient_to_DetectLine<I extends ImageGray<I>,D extends ImageGray<D>>
extends Object
implements DetectLine<I>
Converts
HoughTransformGradient
into DetectLine
USAGE NOTES: Blurring the image prior to processing can often improve performance. Results will not be perfect and to detect all the obvious lines in the image several false positives might be returned.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHoughGradient_to_DetectLine
(HoughTransformGradient hough, ImageGradient<I, D> gradient, Class<I> inputType) -
Method Summary
Modifier and TypeMethodDescriptionDetect lines inside the image.getHough()
float
boolean
void
setNonMaxSuppression
(boolean nonMaxSuppression) void
setThresholdEdge
(float thresholdEdge)
-
Field Details
-
thresholdEdge
public float thresholdEdge -
nonMaxSuppression
public boolean nonMaxSuppression
-
-
Constructor Details
-
HoughGradient_to_DetectLine
public HoughGradient_to_DetectLine(HoughTransformGradient hough, ImageGradient<I, D> gradient, Class<I> inputType)
-
-
Method Details
-
detect
Description copied from interface:DetectLine
Detect lines inside the image.- Specified by:
detect
in interfaceDetectLine<I extends ImageGray<I>>
- Parameters:
input
- Input image.- Returns:
- List of found lines.
-
getInputType
- Specified by:
getInputType
in interfaceDetectLine<I extends ImageGray<I>>
-
getThresholdEdge
public float getThresholdEdge() -
setThresholdEdge
public void setThresholdEdge(float thresholdEdge) -
getEdgeIntensity
-
getBinary
-
getHough
-
getGradient
-
getDerivX
-
getDerivY
-
isNonMaxSuppression
public boolean isNonMaxSuppression() -
setNonMaxSuppression
public void setNonMaxSuppression(boolean nonMaxSuppression)
-