Documentation of 'boofcv.examples.features.ExampleFitPolygon' Java class
ExampleFitPolygon
boofcv.examples.features

Class ExampleFitPolygon



  • public class ExampleFitPolygon
    extends java.lang.Object
    Demonstration 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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void fitBinaryImage(GrayF32 input)
      Fits polygons to found contours around binary blobs.
      static void fitCannyBinary(GrayF32 input)
      Detects contours inside the binary image generated by canny.
      static void fitCannyEdges(GrayF32 input)
      Fits a sequence of line-segments into a sequence of points found using the Canny edge detector.
      static void main(java.lang.String[] args) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExampleFitPolygon

        public ExampleFitPolygon()
    • 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

You see the box below because you did not login.