- java.lang.Object
-
- boofcv.abst.feature.detect.line.DetectLineHoughPolar<I,D>
-
- All Implemented Interfaces:
- DetectLine<I>
public class DetectLineHoughPolar<I extends ImageGray,D extends ImageGray> extends java.lang.Object implements DetectLine<I>
Full processing chain for detecting lines using a Hough transform with polar parametrization.
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.
- See Also:
HoughTransformLinePolar
-
-
Constructor Summary
Constructors Constructor and Description DetectLineHoughPolar(int localMaxRadius, int minCounts, double resolutionRange, double resolutionAngle, float thresholdEdge, int maxLines, ImageGradient<I,D> gradient)Configures hough line detector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<LineParametric2D_F32>detect(I input)Detect lines inside the image.GrayU8getBinary()DgetDerivX()DgetDerivY()GrayF32getEdgeIntensity()HoughTransformLinePolargetTransform()
-
-
-
Constructor Detail
-
DetectLineHoughPolar
public DetectLineHoughPolar(int localMaxRadius, int minCounts, double resolutionRange, double resolutionAngle, float thresholdEdge, int maxLines, ImageGradient<I,D> gradient)Configures hough line detector.- Parameters:
localMaxRadius- Radius for local maximum suppression. Try 2.minCounts- Minimum number of counts for detected line. Critical tuning parameter and image dependent.resolutionRange- Resolution of line range in pixels. Try 2resolutionAngle- Resolution of line angle in radius. Try PI/180thresholdEdge- Edge detection threshold. Try 50.maxLines- Maximum number of lines to return. If ≤ 0 it will return them all.gradient- Algorithm for computing image gradient.
-
-
Method Detail
-
detect
public java.util.List<LineParametric2D_F32> detect(I input)
Description copied from interface:DetectLineDetect lines inside the image.- Specified by:
detectin interfaceDetectLine<I extends ImageGray>- Parameters:
input- Input image.- Returns:
- List of found lines.
-
getTransform
public HoughTransformLinePolar getTransform()
-
getDerivX
public D getDerivX()
-
getDerivY
public D getDerivY()
-
getEdgeIntensity
public GrayF32 getEdgeIntensity()
-
getBinary
public GrayU8 getBinary()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG