Class CornerDetector
- java.lang.Object
-
- com.macrofocus.treemap.voronoi.smoothing.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.
-
-
-
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 rastershape
- the shape outline if the raster- Returns:
- a list of dtected corners
-
-