Class FactoryDetectLine

java.lang.Object
boofcv.factory.feature.detect.line.FactoryDetectLine

public class FactoryDetectLine extends Object
Factory for creating high level implementations of DetectLine and DetectLineSegment. For more access to internal data structures see FactoryDetectLineAlgs.
  • Constructor Details

    • FactoryDetectLine

      public FactoryDetectLine()
  • Method Details

    • lineRansac

      public static <I extends ImageGray<I>> DetectLineSegment<I> lineRansac(@Nullable @Nullable ConfigLineRansac config, Class<I> imageType)
      Detects line segments inside an image using the DetectLineSegmentsGridRansac algorithm.
      Parameters:
      config - Configuration for line detector
      imageType - Type of single band input image.
      Returns:
      Line segment detector
      See Also:
    • houghLineFootSub

      public static <T extends ImageGray<T>> DetectLine<T> houghLineFootSub(@Nullable @Nullable ConfigHoughFootSubimage config, Class<T> imageType)
      Detects lines using a foot of norm parametrization and sub images to reduce degenerate configurations, see DetectLineHoughFootSubimage for details.
      Parameters:
      config - Configuration for line detector. If null then default will be used.
      imageType - input image type
      Returns:
      Line detector.
      See Also:
    • houghLineFoot

      public static <T extends ImageGray<T>> DetectLine<T> houghLineFoot(@Nullable @Nullable ConfigHoughGradient configHough, @Nullable @Nullable ConfigParamFoot configParam, Class<T> imageType)
      Used to find edges along the side of objects. Image gradient is found and thresholded. The pixel coordinate of each active pixel and its gradient is then used to estimate the parameter of a line. Uses HoughTransformGradient with HoughParametersFootOfNorm
      Parameters:
      configHough - Configuration for hough binary transform.
      configParam - Configuration for polar parameters
      imageType - type of input image
      Returns:
      Line detector.
    • houghLinePolar

      public static <T extends ImageGray<T>> DetectLine<T> houghLinePolar(@Nullable @Nullable ConfigHoughGradient configHough, @Nullable @Nullable ConfigParamPolar configParam, Class<T> imageType)
      Used to find edges along the side of objects. Image gradient is found and thresholded. The pixel coordinate of each active pixel and its gradient is then used to estimate the parameter of a line. Uses HoughTransformGradient with HoughParametersPolar
      Parameters:
      configHough - Configuration for hough binary transform.
      configParam - Configuration for polar parameters
      imageType - type of input image
      Returns:
      Line detector.
    • houghLinePolar

      public static <T extends ImageGray<T>> DetectLine<T> houghLinePolar(@Nullable @Nullable ConfigHoughBinary configHough, @Nullable @Nullable ConfigParamPolar configParam, Class<T> imageType)
      Line detector which converts image into a binary one and assumes every pixel with a value of 1 belongs to a line. Uses HoughTransformBinary with HoughParametersPolar
      Parameters:
      configHough - Configuration for hough binary transform.
      configParam - Configuration for polar parameters
      imageType - type of input image
      Returns:
      Line detector.