public class WatershedTransform3D extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
verbose
flag to output the transform steps and their
execution times in the log window
|
Constructor and Description |
---|
WatershedTransform3D(ij.ImagePlus input,
ij.ImagePlus mask)
Construct a watershed transform
|
WatershedTransform3D(ij.ImagePlus input,
ij.ImagePlus mask,
int connectivity)
Construct a watershed transform
|
Modifier and Type | Method and Description |
---|---|
ij.ImagePlus |
apply()
Apply fast watersheds using flooding simulations, as described
by Soille, Pierre, and Luc M.
|
ij.ImagePlus |
apply(double hMin,
double hMax)
Apply fast watersheds using flooding simulations, as described
by Soille, Pierre, and Luc M.
|
ArrayList<VoxelRecord> |
extractVoxelValues(ij.ImageStack inputStack,
double hMin,
double hMax)
Extract voxel values from input image such that
they have value h, hMin <= h <= hMax.
|
int |
getConnectivity()
Get the voxel connectivity (6 or 26)
|
void |
setConnectivity(int conn)
Set the voxel connectivity (6 or 26)
|
void |
setVerbose(boolean verbose)
Set verbose flag
|
protected boolean verbose
public WatershedTransform3D(ij.ImagePlus input, ij.ImagePlus mask)
input
- input image (usually a gradient image)mask
- binary mask to restrict the region of interest (null to use whole input image)public WatershedTransform3D(ij.ImagePlus input, ij.ImagePlus mask, int connectivity)
input
- grayscale image (usually a gradient image)mask
- binary mask to restrict the region of interest (null to use whole input image)connectivity
- voxel connectivity (6 or 26)public int getConnectivity()
public void setConnectivity(int conn)
conn
- voxel connectivitypublic void setVerbose(boolean verbose)
verbose
- new verbose flagpublic ij.ImagePlus apply()
public ij.ImagePlus apply(double hMin, double hMax)
hMin
- the minimum value for dynamichMax
- the maximum value for dynamicpublic ArrayList<VoxelRecord> extractVoxelValues(ij.ImageStack inputStack, double hMin, double hMax)
inputStack
- input stackhMin
- minimum grayscale height valuehMax
- maximum grayscale height valueCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.