public class DetectLineHoughFoot<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 foot of norm parametrization inside a Hough transform.
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.
HoughTransformLineFootOfNorm| Constructor and Description |
|---|
DetectLineHoughFoot(int localMaxRadius,
int minCounts,
int minDistanceFromOrigin,
float thresholdEdge,
int maxLines,
boofcv.abst.filter.derivative.ImageGradient<I,D> gradient)
Specifies detection parameters.
|
| 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() |
HoughTransformLineFootOfNorm |
getTransform() |
public DetectLineHoughFoot(int localMaxRadius,
int minCounts,
int minDistanceFromOrigin,
float thresholdEdge,
int maxLines,
boofcv.abst.filter.derivative.ImageGradient<I,D> gradient)
localMaxRadius - Lines in transform space must be a local max in a region with this radius. Try 5;minCounts - Minimum number of counts/votes inside the transformed image. Try 5.minDistanceFromOrigin - Lines which are this close to the origin of the transformed image are ignored. Try 5.thresholdEdge - Threshold for classifying pixels as edge or not. Try 30.gradient - Computes the 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 HoughTransformLineFootOfNorm getTransform()
public D getDerivX()
public D getDerivY()
public boofcv.struct.image.GrayF32 getEdgeIntensity()
public boofcv.struct.image.GrayU8 getBinary()