Class CornerDetector

java.lang.Object
com.treemap.swing.voronoi.smoothing.CornerDetector

public class CornerDetector extends Object
  • Constructor Details

    • CornerDetector

      public CornerDetector()
  • Method Details

    • detect

      public static List<Vertex> detect(VoronoiOutputRaster voronoiOutput, com.macrofocus.geom.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