Class CornerDetector


  • public class CornerDetector
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CornerDetector()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<Vertex> detect​(VoronoiOutputRaster voronoiOutput, java.awt.Shape shape)
      Detects the corners (or vertexes) of a cell shape.
      • Methods inherited from class java.lang.Object

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

      • CornerDetector

        public CornerDetector()
    • Method Detail

      • detect

        public static java.util.List<Vertex> detect​(VoronoiOutputRaster voronoiOutput,
                                                    java.awt.Shape shape)
        Detects the corners (or vertexes) of a cell shape. These corner locations are defined as contact points of three different cell pixels or to different cell pixels and the shape bounds or a corner in the shape bounds. These corners are used to as start and end points for smoothing splines.
        Parameters:
        voronoiOutput - the voronoi output raster
        shape - the shape outline if the raster
        Returns:
        a list of dtected corners