public class MarkerControlledWatershed3DPlugin extends Object implements ij.plugin.PlugIn
Modifier and Type | Field and Description |
---|---|
static boolean |
binaryMarkers
flag set to TRUE if markers are binary, to FALSE if markers are labels
|
static double |
compactness
compactness constraint, c parameter in compact watershed algorithm [2]
|
static boolean |
getDams
flag to calculate watershed dams
|
static boolean |
use26neighbors
flag to use 26-connectivity
|
Constructor and Description |
---|
MarkerControlledWatershed3DPlugin() |
Modifier and Type | Method and Description |
---|---|
ij.ImagePlus |
process(ij.ImagePlus input,
ij.ImagePlus marker,
ij.ImagePlus mask,
int connectivity)
Apply marker-controlled watershed to a grayscale 2D or 3D image.
|
ij.ImagePlus |
process(ij.ImagePlus input,
ij.ImagePlus marker,
ij.ImagePlus mask,
int connectivity,
double compactness)
Apply marker-controlled watershed to a grayscale 2D or 3D image.
|
void |
run(String arg)
Plugin run method to be called from ImageJ
|
public static boolean binaryMarkers
public static boolean getDams
public static boolean use26neighbors
public static double compactness
public ij.ImagePlus process(ij.ImagePlus input, ij.ImagePlus marker, ij.ImagePlus mask, int connectivity)
input
- grayscale 2D or 3D image (in principle a "gradient" image)marker
- the labeled marker imagemask
- binary mask to restrict region of interestconnectivity
- 6 or 26 voxel connectivitypublic ij.ImagePlus process(ij.ImagePlus input, ij.ImagePlus marker, ij.ImagePlus mask, int connectivity, double compactness)
input
- grayscale 2D or 3D image (in principle a "gradient" image)marker
- the labeled marker imagemask
- binary mask to restrict region of interestconnectivity
- 6 or 26 voxel connectivitycompactness
- compactness constraint for compact watershed (set to 0 for classical watershed)public void run(String arg)
run
in interface ij.plugin.PlugIn
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.