public class WatershedTransform2D 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 | 
|---|
WatershedTransform2D(ij.process.ImageProcessor input,
                    ij.process.ImageProcessor mask)
Construct a watershed transform 
 | 
WatershedTransform2D(ij.process.ImageProcessor input,
                    ij.process.ImageProcessor mask,
                    int connectivity)
Construct a watershed transform 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ij.process.ImageProcessor | 
apply()
Apply fast watersheds using flooding simulations, as described
 by Soille, Pierre, and Luc M. 
 | 
ij.process.ImageProcessor | 
apply(double hMin,
     double hMax)
Apply fast watersheds using flooding simulations, as described
 by Soille, Pierre, and Luc M. 
 | 
ArrayList<PixelRecord> | 
extractPixelValues(ij.process.ImageProcessor inputImage,
                  double hMin,
                  double hMax)
Extract pixel values from input image such that
 they have value h, hMin <= h <= hMax. 
 | 
ij.ImagePlus | 
getAnimation(double hMin,
            double hMax)
Apply fast watersheds using flooding simulations, as described
 by Soille, Pierre, and Luc M. 
 | 
int | 
getConnectivity()
Get the pixel connectivity (4 or 8) 
 | 
void | 
setConnectivity(int conn)
Set the pixel connectivity (4 or 8) 
 | 
void | 
setVerbose(boolean verbose)
Set verbose flag 
 | 
protected boolean verbose
public WatershedTransform2D(ij.process.ImageProcessor input,
                            ij.process.ImageProcessor mask)
input - input image (usually a gradient image)mask - binary mask to restrict the region of interest (null to use whole input image)public WatershedTransform2D(ij.process.ImageProcessor input,
                            ij.process.ImageProcessor mask,
                            int connectivity)
input - input image (usually a gradient image)mask - binary mask to restrict the region of interest (null to use whole input image)connectivity - pixel connectivity (4 or 8)public int getConnectivity()
public void setConnectivity(int conn)
conn - pixel connectivitypublic void setVerbose(boolean verbose)
verbose - new verbose flagpublic ij.process.ImageProcessor apply()
public ij.process.ImageProcessor apply(double hMin,
                                       double hMax)
hMin - the minimum value for dynamichMax - the maximum value for dynamicpublic ArrayList<PixelRecord> extractPixelValues(ij.process.ImageProcessor inputImage, double hMin, double hMax)
inputImage - input imagehMin - minimum grayscale height valuehMax - maximum grayscale height valuepublic ij.ImagePlus getAnimation(double hMin,
                                 double hMax)
hMin - minimum grayscale level heighthMax - maximum grayscale level heightCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.