boofcv.examples.features
Class ExampleFitPolygon
- java.lang.Object
-
- boofcv.examples.features.ExampleFitPolygon
-
public class ExampleFitPolygon extends java.lang.ObjectDemonstration of how to convert a point sequence describing an objects outline/contour into a sequence of line segments. Useful when analysing shapes such as squares and triangles or when trying to simply the low level pixel output.
-
-
Constructor Summary
Constructors Constructor and Description ExampleFitPolygon()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidfitBinaryImage(GrayF32 input)Fits polygons to found contours around binary blobs.static voidfitCannyBinary(GrayF32 input)Detects contours inside the binary image generated by canny.static voidfitCannyEdges(GrayF32 input)Fits a sequence of line-segments into a sequence of points found using the Canny edge detector.static voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
fitBinaryImage
public static void fitBinaryImage(GrayF32 input)
Fits polygons to found contours around binary blobs.
-
fitCannyEdges
public static void fitCannyEdges(GrayF32 input)
Fits a sequence of line-segments into a sequence of points found using the Canny edge detector. In this case the points are not connected in a loop. The canny detector produces a more complex tree and the fitted points can be a bit noisy compared to the others.
-
fitCannyBinary
public static void fitCannyBinary(GrayF32 input)
Detects contours inside the binary image generated by canny. Only the external contour is relevant. Often easier to deal with than working with Canny edges directly.
-
main
public static void main(java.lang.String[] args)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG