Class FactoryDetectLine
java.lang.Object
boofcv.factory.feature.detect.line.FactoryDetectLine
Factory for creating high level implementations of
DetectLine
and DetectLineSegment
. For more access
to internal data structures see FactoryDetectLineAlgs
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageGray<T>>
DetectLine<T>houghLineFoot
(@Nullable ConfigHoughGradient configHough, @Nullable ConfigParamFoot configParam, Class<T> imageType) Used to find edges along the side of objects.static <T extends ImageGray<T>>
DetectLine<T>houghLineFootSub
(@Nullable ConfigHoughFootSubimage config, Class<T> imageType) Detects lines using a foot of norm parametrization and sub images to reduce degenerate configurations, seeDetectLineHoughFootSubimage
for details.static <T extends ImageGray<T>>
DetectLine<T>houghLinePolar
(@Nullable ConfigHoughBinary configHough, @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.static <T extends ImageGray<T>>
DetectLine<T>houghLinePolar
(@Nullable ConfigHoughGradient configHough, @Nullable ConfigParamPolar configParam, Class<T> imageType) Used to find edges along the side of objects.static <I extends ImageGray<I>>
DetectLineSegment<I>lineRansac
(@Nullable ConfigLineRansac config, Class<I> imageType) Detects line segments inside an image using theDetectLineSegmentsGridRansac
algorithm.
-
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 theDetectLineSegmentsGridRansac
algorithm.- Parameters:
config
- Configuration for line detectorimageType
- 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, seeDetectLineHoughFootSubimage
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. UsesHoughTransformGradient
withHoughParametersFootOfNorm
- Parameters:
configHough
- Configuration for hough binary transform.configParam
- Configuration for polar parametersimageType
- 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. UsesHoughTransformGradient
withHoughParametersPolar
- Parameters:
configHough
- Configuration for hough binary transform.configParam
- Configuration for polar parametersimageType
- 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. UsesHoughTransformBinary
withHoughParametersPolar
- Parameters:
configHough
- Configuration for hough binary transform.configParam
- Configuration for polar parametersimageType
- type of input image- Returns:
- Line detector.
-