boofcv.abst.feature.detect.line
Class DetectLineHoughFootSubimage<I extends ImageGray,D extends ImageGray>
- java.lang.Object
-
- boofcv.abst.feature.detect.line.DetectLineHoughFootSubimage<I,D>
-
- All Implemented Interfaces:
- DetectLine<I>
public class DetectLineHoughFootSubimage<I extends ImageGray,D extends ImageGray> extends java.lang.Object implements DetectLine<I>
Detects lines inside the image by breaking it up into subimages for improved precision. Inside each subimage a hough transform is independently computed. See [1] for more details.
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.
[1] Section 9.3 of E.R. Davies, "Machine Vision Theory Algorithms Practicalities," 3rd Ed. 2005
- See Also:
HoughTransformLineFootOfNorm
-
-
Constructor Summary
Constructors Constructor and Description DetectLineHoughFootSubimage(int localMaxRadius, int minCounts, int minDistanceFromOrigin, float thresholdEdge, int totalHorizontalDivisions, int totalVerticalDivisions, int maxLines, ImageGradient<I,D> gradient)Specifies detection parameters.
-
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()HoughTransformLineFootOfNormgetTransform()
-
-
-
Constructor Detail
-
DetectLineHoughFootSubimage
public DetectLineHoughFootSubimage(int localMaxRadius, int minCounts, int minDistanceFromOrigin, float thresholdEdge, int totalHorizontalDivisions, int totalVerticalDivisions, int maxLines, ImageGradient<I,D> gradient)Specifies detection parameters. The suggested parameters should be used as a starting point and will likely need to be tuned significantly for each different scene.- Parameters:
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.maxLines- Maximum number of lines it will detect. Try 10.gradient- Computes the 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 HoughTransformLineFootOfNorm getTransform()
-
getDerivX
public D getDerivX()
-
getDerivY
public D getDerivY()
-
getEdgeIntensity
public GrayF32 getEdgeIntensity()
-
getBinary
public GrayU8 getBinary()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG