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)
Construct a watershed transform
|
WatershedTransform2D(ij.process.ImageProcessor input,
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.
|
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.
|
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)
input
- input image (usually a gradient image)public WatershedTransform2D(ij.process.ImageProcessor input, int connectivity)
input
- input image (usually a gradient 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 ArrayList<PixelRecord> extractPixelValues(ij.process.ImageProcessor inputImage, double hMin, double hMax)
inputImage
- input imagehMin
- minimum grayscale height valuehMax
- maximum grayscale height valueCopyright © 2015–2021 Fiji. All rights reserved.