public class LabelMapToPolygons extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LabelMapToPolygons.Direction
Enumeration of the different directions that be considered during
processing.
|
static class |
LabelMapToPolygons.Position |
static class |
LabelMapToPolygons.VertexLocation
The different locations of polygon vertices with respect to current
pixel.
|
| Constructor and Description |
|---|
LabelMapToPolygons()
Default empty constructor, using Connectivity 4.
|
LabelMapToPolygons(int conn)
Constructor that allows to specify connectivity.
|
LabelMapToPolygons(int conn,
LabelMapToPolygons.VertexLocation loc)
Constructor that allows to specify connectivity and location of vertices.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,ArrayList<Polygon2D>> |
process(ij.process.ImageProcessor array) |
ArrayList<Point2D> |
trackBoundary(ij.process.ImageProcessor array,
int x0,
int y0,
LabelMapToPolygons.Direction initialDirection)
Tracks the boundary that starts at the current position by iterating on
successive neighbor positions, and returns the set of boundary points.
|
public LabelMapToPolygons()
public LabelMapToPolygons(int conn)
conn - the connectivity to use (must be either 4 or 8)public LabelMapToPolygons(int conn,
LabelMapToPolygons.VertexLocation loc)
conn - the connectivity to use (must be either 4 or 8)public ArrayList<Point2D> trackBoundary(ij.process.ImageProcessor array, int x0, int y0, LabelMapToPolygons.Direction initialDirection)
array - the array containing binary or label representing the
region(s)x0 - the x-coordinate of the start positiony0 - the y-coordinate of the start positioninitialDirection - the direction of the start positionpublic Map<Integer,ArrayList<Polygon2D>> process(ij.process.ImageProcessor array)
Copyright © 2014–2024 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.