public class DetectLineHoughPolar<I extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.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.
HoughTransformLinePolar| Constructor and Description |
|---|
DetectLineHoughPolar(int localMaxRadius,
int minCounts,
double resolutionRange,
double resolutionAngle,
float thresholdEdge,
int maxLines,
boofcv.abst.filter.derivative.ImageGradient<I,D> gradient)
Configures hough line detector.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<georegression.struct.line.LineParametric2D_F32> |
detect(I input)
Detect lines inside the image.
|
boofcv.struct.image.GrayU8 |
getBinary() |
D |
getDerivX() |
D |
getDerivY() |
boofcv.struct.image.GrayF32 |
getEdgeIntensity() |
HoughTransformLinePolar |
getTransform() |
public DetectLineHoughPolar(int localMaxRadius,
int minCounts,
double resolutionRange,
double resolutionAngle,
float thresholdEdge,
int maxLines,
boofcv.abst.filter.derivative.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 java.util.List<georegression.struct.line.LineParametric2D_F32> detect(I input)
DetectLinedetect in interface DetectLine<I extends boofcv.struct.image.ImageGray>input - Input image.public HoughTransformLinePolar getTransform()
public D getDerivX()
public D getDerivY()
public boofcv.struct.image.GrayF32 getEdgeIntensity()
public boofcv.struct.image.GrayU8 getBinary()