public class RegionContourLabeling extends RegionLabeling implements ContourTracer
RegionLabeling.BinaryRegioncurrentLabel, height, ip, labelArray, maxLabel, regions, width| Constructor and Description |
|---|
RegionContourLabeling(ij.process.ByteProcessor ip)
Creates a new region labeling.
|
| Modifier and Type | Method and Description |
|---|---|
List<Contour> |
getInnerContours()
Retrieves all inner contours of the associated region labeling.
|
List<Contour> |
getInnerContours(boolean sort)
Retrieves all inner contours of the associated region labeling.
|
int |
getLabel(int u,
int v)
Get the label number for the specified image coordinate.
|
List<Contour> |
getOuterContours()
Retrieves all outer contours of the associated region labeling.
|
List<Contour> |
getOuterContours(boolean sort)
Retrieves all outer contours of the associated region labeling.
|
protected int[][] |
initialize() |
protected void |
setLabel(int u,
int v,
int label) |
findRegion, getRegion, getRegionPoints, getRegions, getRegions, makeLabelImage, makeRandomColor, resetLabelpublic RegionContourLabeling(ij.process.ByteProcessor ip)
ip - the binary input image with 0 values for background pixels and values > 0
for foreground pixels.public List<Contour> getOuterContours()
ContourTracergetOuterContours in interface ContourTracerpublic List<Contour> getOuterContours(boolean sort)
ContourTracergetOuterContours in interface ContourTracersort - set true to sort contours by (descending) length.public List<Contour> getInnerContours()
ContourTracergetInnerContours in interface ContourTracerpublic List<Contour> getInnerContours(boolean sort)
ContourTracergetInnerContours in interface ContourTracersort - set true to sort contours by (descending) length.protected int[][] initialize()
initialize in class RegionLabelingpublic int getLabel(int u, int v)
RegionLabelinggetLabel in class RegionLabelingu - the horizontal coordinate.v - the vertical coordinate.protected void setLabel(int u, int v, int label)
setLabel in class RegionLabelingCopyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)