Documentation of 'boofcv.factory.feature.detect.line.FactoryDetectLineAlgs' Java class
FactoryDetectLineAlgs
boofcv.factory.feature.detect.line

Class FactoryDetectLineAlgs



  • public class FactoryDetectLineAlgs
    extends java.lang.Object
    Factory for creating line and line segment detectors.
    • Constructor Detail

      • FactoryDetectLineAlgs

        public FactoryDetectLineAlgs()
    • Method Detail

      • lineRansac

        public static <I extends ImageGray,D extends ImageGrayDetectLineSegmentsGridRansac<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 the DetectLineSegmentsGridRansac algorithm.
        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.36
        connectLines - 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 ImageGrayDetectLineHoughFoot<I,D> houghFoot(ConfigHoughFoot config,
                                                                                                   java.lang.Class<I> imageType,
                                                                                                   java.lang.Class<D> derivType)
        Detects lines using the foot of norm parametrization, see DetectLineHoughFoot. 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 ImageGrayDetectLineHoughFootSubimage<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, see DetectLineHoughFootSubimage for 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 ImageGrayDetectLineHoughPolar<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

You see the box below because you did not login.