io.loader.load2D.contours
Class ContourTracer
java.lang.Object
io.loader.load2D.contours.ContourTracer
public class ContourTracer
- extends java.lang.Object
tracing the contour of an object shape in a given binary image - Wilhelm
Burger's imageJ plugin (http://www.imagingbook.com/)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOREGROUND
static final byte FOREGROUND
- See Also:
- Constant Field Values
BACKGROUND
static final byte BACKGROUND
- See Also:
- Constant Field Values
beVerbose
static boolean beVerbose
foregroundcolor
static final int foregroundcolor
- See Also:
- Constant Field Values
outerContours
java.util.List<Contour> outerContours
innerContours
java.util.List<Contour> innerContours
regionId
int regionId
ip
ij.process.ImageProcessor ip
width
int width
height
int height
pixelArray
byte[][] pixelArray
labelArray
int[][] labelArray
ContourTracer
public ContourTracer(ij.process.ImageProcessor ip)
getOuterContours
public java.util.List<Contour> getOuterContours()
getInnerContours
public java.util.List<Contour> getInnerContours()
makeAuxArrays
void makeAuxArrays()
traceOuterContour
Contour traceOuterContour(int cx,
int cy,
int label)
traceInnerContour
Contour traceInnerContour(int cx,
int cy,
int label)
traceContour
Contour traceContour(int xS,
int yS,
int label,
int dS,
Contour cont)
findNextPoint
int findNextPoint(java.awt.Point pt,
int dir)
findAllContours
void findAllContours()