public class FloodFillComponentsLabeling3D extends AlgoStub implements ConnectedComponentsLabeling3D
int conn = 6;
int bitDepth = 16;
FloodFillComponentsLabeling3D algo = new FloodFillComponentsLabeling3D(conn, bitDepth);
DefaultAlgoListener.monitor(algo);
ImageStack labels = algo.computeLabels(image);
// or:
FloodFillComponentsLabeling3D.Result res = algo.computeResult(image);
ImageStack labels = res.labelMap;
FloodFillComponentsLabeling
,
FloodFill3D
Modifier and Type | Class and Description |
---|---|
class |
FloodFillComponentsLabeling3D.Result
Data class that stores result of connected component labeling.
|
Constructor and Description |
---|
FloodFillComponentsLabeling3D()
Constructor with default connectivity 6 and default output bitdepth equal to 16.
|
FloodFillComponentsLabeling3D(int connectivity)
Constructor specifying the connectivity and using default output bitdepth equal to 16.
|
FloodFillComponentsLabeling3D(int connectivity,
int bitDepth)
Constructor specifying the connectivity and the bitdepth of result label
image
|
Modifier and Type | Method and Description |
---|---|
ij.ImageStack |
computeLabels(ij.ImageStack image)
Computes labels corresponding to connected components in input image.
|
FloodFillComponentsLabeling3D.Result |
computeResult(ij.ImageStack image)
Computes connected components labeling on the input binary image, and
returns the results encapsulated into a
Result class
together with the largest label index. |
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAlgoListener, removeAlgoListener
public FloodFillComponentsLabeling3D()
public FloodFillComponentsLabeling3D(int connectivity)
connectivity
- the connectivity of connected components (6 or 26)public FloodFillComponentsLabeling3D(int connectivity, int bitDepth)
connectivity
- the connectivity of connected components (6 or 26)bitDepth
- the bit depth of the result (8, 16, or 32)public ij.ImageStack computeLabels(ij.ImageStack image)
ConnectedComponentsLabeling3D
computeLabels
in interface ConnectedComponentsLabeling3D
image
- binary image containing componentspublic FloodFillComponentsLabeling3D.Result computeResult(ij.ImageStack image)
Result
class
together with the largest label index.image
- the input binary imageCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.