public class MinimaAndMaxima3D extends Object
A collection of static methods for computing regional and extended minima and maxima on 3D stacks. Supports integer and floating-point stacks, in 6 and 26 connectivities.
Regional extrema algorithms are based on flood-filling-like algorithms, whereas extended extrema and extrema imposition algorithms use geodesic reconstruction algorithm.
See the books of Serra and Soille for further details.
MinimaAndMaxima
,
Reconstruction3D
,
FloodFill
Modifier and Type | Method and Description |
---|---|
static ij.ImageStack |
extendedMaxima(ij.ImageStack image,
double dynamic)
Computes the extended maxima in grayscale image
image ,
keeping maxima with the specified dynamic, and using the default
connectivity. |
static ij.ImageStack |
extendedMaxima(ij.ImageStack image,
double dynamic,
ij.ImageStack binaryMask)
Computes the extended maxima in the grayscale image
image ,
keeping maxima with the specified dynamic, restricted to the non-zero
voxels of the binary mask, and using the default connectivity. |
static ij.ImageStack |
extendedMaxima(ij.ImageStack image,
double dynamic,
int conn)
Computes the extended maxima in grayscale image
image ,
keeping maxima with the specified dynamic, and using the specified
connectivity. |
static ij.ImageStack |
extendedMaxima(ij.ImageStack image,
double dynamic,
int conn,
ij.ImageStack binaryMask)
Computes the extended maxima in the grayscale image
image ,
keeping maxima with the specified dynamic, restricted to the non-zero
voxels of the binary mask, and using the specified connectivity. |
static ij.ImageStack |
extendedMinima(ij.ImageStack image,
double dynamic)
Computes the extended minima in grayscale image
image ,
keeping minima with the specified dynamic, and using the default
connectivity. |
static ij.ImageStack |
extendedMinima(ij.ImageStack image,
double dynamic,
int conn)
Computes the extended minima in grayscale image
image ,
keeping minima with the specified dynamic, and using the specified
connectivity. |
static ij.ImageStack |
imposeMaxima(ij.ImageStack image,
ij.ImageStack maxima)
Imposes the maxima given by marker image into the input image, using
the default connectivity.
|
static ij.ImageStack |
imposeMaxima(ij.ImageStack image,
ij.ImageStack maxima,
int conn)
Imposes the maxima given by marker image into the input image, using
the specified connectivity.
|
static ij.ImageStack |
imposeMinima(ij.ImageStack image,
ij.ImageStack minima)
Imposes the minima given by marker image into the input image, using
the default connectivity.
|
static ij.ImageStack |
imposeMinima(ij.ImageStack image,
ij.ImageStack minima,
int conn)
Imposes the minima given by marker image into the input image, using
the specified connectivity.
|
static ij.ImageStack |
regionalMaxima(ij.ImageStack image)
Computes the regional maxima in 3D stack
image ,
using the default connectivity. |
static ij.ImageStack |
regionalMaxima(ij.ImageStack image,
int conn)
Computes the regional maxima in grayscale image
stack ,
using the specified connectivity. |
static ij.ImageStack |
regionalMaxima(ij.ImageStack image,
int conn,
ij.ImageStack mask)
Computes the regional maxima in grayscale image
stack ,
using the specified connectivity and binary mask. |
static ij.ImageStack |
regionalMaximaByReconstruction(ij.ImageStack image,
int conn)
Computes the regional maxima in 3D image
stack ,
using the specified connectivity, and a slower algorithm (used for testing). |
static ij.ImageStack |
regionalMinima(ij.ImageStack image)
Computes the regional minima in 3D image
stack ,
using the default connectivity. |
static ij.ImageStack |
regionalMinima(ij.ImageStack image,
int conn)
Computes the regional minima in 3D stack
image ,
using the specified connectivity. |
static ij.ImageStack |
regionalMinima(ij.ImageStack image,
int conn,
ij.ImageStack mask)
Computes the regional minima in 3D image
stack ,
using the specified connectivity. |
static ij.ImageStack |
regionalMinimaByReconstruction(ij.ImageStack image,
int conn)
Computes the regional minima in grayscale image
image ,
using the specified connectivity, and a slower algorithm (used for testing). |
public static final ij.ImageStack regionalMaxima(ij.ImageStack image)
image
,
using the default connectivity.image
- the 3D image to processpublic static final ij.ImageStack regionalMaxima(ij.ImageStack image, int conn)
stack
,
using the specified connectivity.image
- the 3D image to processconn
- the connectivity for maxima, that should be either 6 or 26public static final ij.ImageStack regionalMaximaByReconstruction(ij.ImageStack image, int conn)
stack
,
using the specified connectivity, and a slower algorithm (used for testing).image
- the 3D image to processconn
- the connectivity for maxima, that should be either 6 or 26public static final ij.ImageStack regionalMaxima(ij.ImageStack image, int conn, ij.ImageStack mask)
stack
,
using the specified connectivity and binary mask.image
- the 3D image to processconn
- the connectivity for maxima, that should be either 6 or 26mask
- the binary mask that restricts the processingpublic static final ij.ImageStack regionalMinima(ij.ImageStack image)
stack
,
using the default connectivity.image
- the 3D image to processpublic static final ij.ImageStack regionalMinima(ij.ImageStack image, int conn)
image
,
using the specified connectivity.image
- the 3D image to processconn
- the connectivity for minima, that should be either 6 or 26public static final ij.ImageStack regionalMinimaByReconstruction(ij.ImageStack image, int conn)
image
,
using the specified connectivity, and a slower algorithm (used for testing).image
- the 3D image to processconn
- the connectivity for minima, that should be either 6 or 26public static final ij.ImageStack regionalMinima(ij.ImageStack image, int conn, ij.ImageStack mask)
stack
,
using the specified connectivity.image
- the 3D image to processconn
- the connectivity for minima, that should be either 6 or 26mask
- the binary mask that restricts processingpublic static final ij.ImageStack extendedMaxima(ij.ImageStack image, double dynamic)
image
,
keeping maxima with the specified dynamic, and using the default
connectivity.image
- the 3D image to processdynamic
- the difference between maxima and maxima boundarypublic static final ij.ImageStack extendedMaxima(ij.ImageStack image, double dynamic, int conn)
image
,
keeping maxima with the specified dynamic, and using the specified
connectivity.image
- the 3D image to processdynamic
- the difference between maxima and maxima boundaryconn
- the connectivity for maxima, that should be either 6 or 26public static final ij.ImageStack extendedMaxima(ij.ImageStack image, double dynamic, ij.ImageStack binaryMask)
image
,
keeping maxima with the specified dynamic, restricted to the non-zero
voxels of the binary mask, and using the default connectivity.image
- the 3D image to processdynamic
- the difference between maxima and maxima boundarybinaryMask
- binary mask image to restrict region of applicationpublic static final ij.ImageStack extendedMaxima(ij.ImageStack image, double dynamic, int conn, ij.ImageStack binaryMask)
image
,
keeping maxima with the specified dynamic, restricted to the non-zero
voxels of the binary mask, and using the specified connectivity.image
- input grayscale imagedynamic
- nonnegative scalar defining the depth threshold of maxima
removal ("h" value in Soile, 1999)conn
- connectivity value (6 or 26)binaryMask
- binary mask image to restrict region of applicationpublic static final ij.ImageStack extendedMinima(ij.ImageStack image, double dynamic)
image
,
keeping minima with the specified dynamic, and using the default
connectivity.image
- the 3D image to processdynamic
- the difference between minima and minima boundarypublic static final ij.ImageStack extendedMinima(ij.ImageStack image, double dynamic, int conn)
image
,
keeping minima with the specified dynamic, and using the specified
connectivity.image
- the 3D image to processdynamic
- the difference between minima and minima boundaryconn
- the connectivity for minima, that should be either 6 or 26public static final ij.ImageStack imposeMaxima(ij.ImageStack image, ij.ImageStack maxima)
image
- the 3D image to processmaxima
- a 3D binary image of maximapublic static final ij.ImageStack imposeMaxima(ij.ImageStack image, ij.ImageStack maxima, int conn)
image
- the 3D image to processmaxima
- a 3D binary image of maximaconn
- the connectivity for maxima, that should be either 6 or 26public static final ij.ImageStack imposeMinima(ij.ImageStack image, ij.ImageStack minima)
image
- the 3D image to processminima
- a 3D binary image of minimapublic static final ij.ImageStack imposeMinima(ij.ImageStack image, ij.ImageStack minima, int conn)
image
- the 3D image to processminima
- a 3D binary image of minimaconn
- the connectivity for minima, that should be either 6 or 26Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.