public class FactoryDetectLineAlgs
extends java.lang.Object
| Constructor and Description |
|---|
FactoryDetectLineAlgs() |
| Modifier and Type | Method and Description |
|---|---|
static <I extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> |
houghFoot(ConfigHoughFoot config,
java.lang.Class<I> imageType,
java.lang.Class<D> derivType)
Detects lines using the foot of norm parametrization, see
DetectLineHoughFoot. |
static <I extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> |
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. |
static <I extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> |
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 boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> |
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. |
public static <I extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> DetectLineSegmentsGridRansac<I,D> lineRansac(int regionSize, double thresholdEdge, double thresholdAngle, boolean connectLines, java.lang.Class<I> imageType, java.lang.Class<D> derivType)
DetectLineSegmentsGridRansac algorithm.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.DetectLineSegmentsGridRansacpublic static <I extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> DetectLineHoughFoot<I,D> houghFoot(ConfigHoughFoot config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)
DetectLineHoughFoot. The polar
parametrization is more common, but more difficult to tune.I - Input image type.D - Image derivative type.config - Configuration for line detector. If null then default will be used.imageType - Type of single band input image.derivType - Image derivative type.DetectLineHoughFootpublic static <I extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> DetectLineHoughFootSubimage<I,D> houghFootSub(ConfigHoughFootSubimage config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)
DetectLineHoughFootSubimage for details.I - Input image type.D - Image derivative type.config - Configuration for line detector. If null then default will be used.imageType - Type of single band input image.derivType - Image derivative type.DetectLineHoughFootSubimagepublic static <I extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> DetectLineHoughPolar<I,D> houghPolar(ConfigHoughPolar config, java.lang.Class<I> imageType, java.lang.Class<D> derivType)
I - Input image type.D - Image derivative type.config - Configuration for line detector. Can't be null.imageType - Type of single band input image.derivType - Image derivative type.DetectLineHoughPolar