public class DetectLineHoughPolar<I extends ImageSingleBand,D extends ImageSingleBand> extends 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.
HoughTransformLinePolar| Constructor and Description |
|---|
DetectLineHoughPolar(int localMaxRadius,
int minCounts,
double resolutionRange,
double resolutionAngle,
float thresholdEdge,
int maxLines,
ImageGradient<I,D> gradient)
Configures hough line detector.
|
| Modifier and Type | Method and Description |
|---|---|
List<georegression.struct.line.LineParametric2D_F32> |
detect(I input)
Detect lines inside the image.
|
ImageUInt8 |
getBinary() |
D |
getDerivX() |
D |
getDerivY() |
ImageFloat32 |
getEdgeIntensity() |
HoughTransformLinePolar |
getTransform() |
public DetectLineHoughPolar(int localMaxRadius,
int minCounts,
double resolutionRange,
double resolutionAngle,
float thresholdEdge,
int maxLines,
ImageGradient<I,D> gradient)
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.public List<georegression.struct.line.LineParametric2D_F32> detect(I input)
DetectLinedetect in interface DetectLine<I extends ImageSingleBand>input - Input image.public HoughTransformLinePolar getTransform()
public D getDerivX()
public D getDerivY()
public ImageFloat32 getEdgeIntensity()
public ImageUInt8 getBinary()
Copyright © 2013. All Rights Reserved.