Package boofcv.factory.shape
Class FactoryShapeDetector
java.lang.Object
boofcv.factory.shape.FactoryShapeDetector
Factory for detecting higher level shapes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageGray<T>>
BinaryEllipseDetector<T>ellipse
(@Nullable ConfigEllipseDetector config, Class<T> imageType) Creates an ellipse detector which will detect all ellipses in the image initially using a binary image and then refine the estimate using a subpixel algorithm in the gray scale image.static <T extends ImageGray<T>>
DetectPolygonBinaryGrayRefine<T>polygon
(@Nullable ConfigPolygonDetector config, Class<T> imageType) Creates a polygon detector.static <T extends ImageGray<T>>
DetectPolygonFromContour<T>polygonContour
(ConfigPolygonFromContour config, Class<T> imageType) static <T extends ImageGray<T>>
RefinePolygonToGray<T>refinePolygon
(ConfigRefinePolygonLineToImage config, Class<T> imageType)
-
Constructor Details
-
FactoryShapeDetector
public FactoryShapeDetector()
-
-
Method Details
-
ellipse
public static <T extends ImageGray<T>> BinaryEllipseDetector<T> ellipse(@Nullable @Nullable ConfigEllipseDetector config, Class<T> imageType) Creates an ellipse detector which will detect all ellipses in the image initially using a binary image and then refine the estimate using a subpixel algorithm in the gray scale image.- Parameters:
config
- Configuration for ellipse detector. null == defaultimageType
- Input image type- Returns:
- Detecto
-
polygon
public static <T extends ImageGray<T>> DetectPolygonBinaryGrayRefine<T> polygon(@Nullable @Nullable ConfigPolygonDetector config, Class<T> imageType) Creates a polygon detector. The polygon is assumed to be a black shape with a much lighter background. The polygon can be found to sub-pixel accuracy, if configured to do so.- Parameters:
config
- Configuration for polygon detectorimageType
- Input image type- Returns:
- Detector
-
polygonContour
public static <T extends ImageGray<T>> DetectPolygonFromContour<T> polygonContour(ConfigPolygonFromContour config, Class<T> imageType) -
refinePolygon
public static <T extends ImageGray<T>> RefinePolygonToGray<T> refinePolygon(ConfigRefinePolygonLineToImage config, Class<T> imageType)
-