public class RegionContourLabeling extends RegionLabeling implements ContourTracer
RegionLabeling.BinaryRegion
currentLabel, 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, resetLabel
public 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()
ContourTracer
getOuterContours
in interface ContourTracer
public List<Contour> getOuterContours(boolean sort)
ContourTracer
getOuterContours
in interface ContourTracer
sort
- set true to sort contours by (descending) length.public List<Contour> getInnerContours()
ContourTracer
getInnerContours
in interface ContourTracer
public List<Contour> getInnerContours(boolean sort)
ContourTracer
getInnerContours
in interface ContourTracer
sort
- set true to sort contours by (descending) length.protected int[][] initialize()
initialize
in class RegionLabeling
public int getLabel(int u, int v)
RegionLabeling
getLabel
in class RegionLabeling
u
- the horizontal coordinate.v
- the vertical coordinate.protected void setLabel(int u, int v, int label)
setLabel
in class RegionLabeling
Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)