boofcv.factory.feature.detect.line
Class FactoryDetectLineAlgs
- java.lang.Object
-
- boofcv.factory.feature.detect.line.FactoryDetectLineAlgs
-
public class FactoryDetectLineAlgs extends java.lang.ObjectFactory for creating line and line segment detectors.
-
-
Constructor Summary
Constructors Constructor and Description FactoryDetectLineAlgs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static <I extends ImageGray,D extends ImageGray>
DetectLineHoughFoot<I,D>houghFoot(ConfigHoughFoot config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)Detects lines using the foot of norm parametrization, seeDetectLineHoughFoot.static <I extends ImageGray,D extends ImageGray>
DetectLineHoughFootSubimage<I,D>houghFootSub(ConfigHoughFootSubimage config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)Detects lines using a foot of norm parametrization and sub images to reduce degenerate configurations, seeDetectLineHoughFootSubimagefor details.static <I extends ImageGray,D extends ImageGray>
DetectLineHoughPolar<I,D>houghPolar(ConfigHoughPolar config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)Creates a Hough line detector based on polar parametrization.static <I extends ImageGray,D extends ImageGray>
DetectLineSegmentsGridRansac<I,D>lineRansac(int regionSize, double thresholdEdge, double thresholdAngle, boolean connectLines, java.lang.Class<I> imageType, java.lang.Class<D> derivType)Detects line segments inside an image using theDetectLineSegmentsGridRansacalgorithm.
-
-
-
Method Detail
-
lineRansac
public static <I extends ImageGray,D extends ImageGray> DetectLineSegmentsGridRansac<I,D> lineRansac(int regionSize, double thresholdEdge, double thresholdAngle, boolean connectLines, java.lang.Class<I> imageType, java.lang.Class<D> derivType)
Detects line segments inside an image using theDetectLineSegmentsGridRansacalgorithm.- Parameters:
regionSize- Size of the region considered. Try 40 and tune.thresholdEdge- Threshold for determining which pixels belong to an edge or not. Try 30 and tune.thresholdAngle- Tolerance in angle for allowing two edgels to be paired up, in radians. Try 2.36connectLines- Should lines be connected and optimized.imageType- Type of single band input image.derivType- Image derivative type.- Returns:
- Line segment detector
- See Also:
DetectLineSegmentsGridRansac
-
houghFoot
public static <I extends ImageGray,D extends ImageGray> DetectLineHoughFoot<I,D> houghFoot(ConfigHoughFoot config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)
Detects lines using the foot of norm parametrization, seeDetectLineHoughFoot. The polar parametrization is more common, but more difficult to tune.- Type Parameters:
I- Input image type.D- Image derivative type.- Parameters:
config- Configuration for line detector. If null then default will be used.imageType- Type of single band input image.derivType- Image derivative type.- Returns:
- Line detector.
- See Also:
DetectLineHoughFoot
-
houghFootSub
public static <I extends ImageGray,D extends ImageGray> DetectLineHoughFootSubimage<I,D> houghFootSub(ConfigHoughFootSubimage config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)
Detects lines using a foot of norm parametrization and sub images to reduce degenerate configurations, seeDetectLineHoughFootSubimagefor details.- Type Parameters:
I- Input image type.D- Image derivative type.- Parameters:
config- Configuration for line detector. If null then default will be used.imageType- Type of single band input image.derivType- Image derivative type.- Returns:
- Line detector.
- See Also:
DetectLineHoughFootSubimage
-
houghPolar
public static <I extends ImageGray,D extends ImageGray> DetectLineHoughPolar<I,D> houghPolar(ConfigHoughPolar config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)
Creates a Hough line detector based on polar parametrization.- Type Parameters:
I- Input image type.D- Image derivative type.- Parameters:
config- Configuration for line detector. Can't be null.imageType- Type of single band input image.derivType- Image derivative type.- Returns:
- Line detector.
- See Also:
DetectLineHoughPolar
-
-
DataMelt 3.0 © DataMelt by jWork.ORG