io.loader.load2D.contours
Class Contour
java.lang.Object
io.loader.load2D.contours.Contour
public class Contour
- extends java.lang.Object
data structure to hold contour information, part of Wilhelm Burger's imageJ
plugin (http://www.imagingbook.com/)
|
Field Summary |
(package private) static int |
INITIAL_SIZE
|
(package private) int |
label
|
(package private) java.util.List<java.awt.Point> |
points
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INITIAL_SIZE
static int INITIAL_SIZE
label
int label
points
java.util.List<java.awt.Point> points
Contour
Contour(int label,
int size)
Contour
Contour(int label)
getPoints
public java.util.List<java.awt.Point> getPoints()
- Returns:
- the points
setPoints
public void setPoints(java.util.List<java.awt.Point> points)
- Parameters:
points - the points to set
addPoint
void addPoint(java.awt.Point n)
makePolygon
java.awt.Shape makePolygon()
makePolygons
static java.awt.Shape[] makePolygons(java.util.List<Contour> contours)
moveBy
void moveBy(int dx,
int dy)
moveContoursBy
static void moveContoursBy(java.util.List<Contour> contours,
int dx,
int dy)
getLength
public int getLength()
printPoints
public void printPoints()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object