public abstract class Reconstruction extends Object
Morphological reconstruction for grayscale or binary images. Most algorithms works for any data type.
This class provides a collection of static methods for commonly used operations, such as border removal or holes filling.
Example of use:
 ImageProcessor mask = IJ.getImage().getProcessor();
 ImageProcessor marker = mask.createProcessor(mask.getWidth(), mask.getHeight());
 marker.set(20, 10, 255); 
 ImageProcessor rec = Reconstruction.reconstructByDilation(marker, mask, 4);
 ImagePlus res = new ImagePlus("Reconstruction", rec);
 res.show(); 
 Reconstruction3D, 
FloodFill| Modifier | Constructor and Description | 
|---|---|
protected  | 
Reconstruction()
Private constructor to prevent class instantiation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ij.process.ImageProcessor | 
fillHoles(ij.process.ImageProcessor image)
Fills the holes in the input image, by (1) inverting the image, (2) 
 performing a morphological reconstruction initialized with inverted image
 boundary and (3) by inverting the result. 
 | 
static ij.process.ImageProcessor | 
killBorders(ij.process.ImageProcessor image)
Removes the border of the input image, by performing a morphological
 reconstruction initialized with image boundary. 
 | 
static ij.process.ImageProcessor | 
reconstructByDilation(ij.process.ImageProcessor marker,
                     ij.process.ImageProcessor mask)
Static method to computes the morphological reconstruction by dilation of
 the marker image under the mask image. 
 | 
static ij.process.ImageProcessor | 
reconstructByDilation(ij.process.ImageProcessor marker,
                     ij.process.ImageProcessor mask,
                     int connectivity)
Static method to computes the morphological reconstruction by dilation of
 the marker image under the mask image. 
 | 
static ij.process.ImageProcessor | 
reconstructByErosion(ij.process.ImageProcessor marker,
                    ij.process.ImageProcessor mask)
Static method to computes the morphological reconstruction by erosion of
 the marker image over the mask image. 
 | 
static ij.process.ImageProcessor | 
reconstructByErosion(ij.process.ImageProcessor marker,
                    ij.process.ImageProcessor mask,
                    int connectivity)
Static method to computes the morphological reconstruction by erosion of
 the marker image over the mask image. 
 | 
protected Reconstruction()
public static final ij.process.ImageProcessor killBorders(ij.process.ImageProcessor image)
image - the image to processfillHoles(ImageProcessor)public static final ij.process.ImageProcessor fillHoles(ij.process.ImageProcessor image)
image - the image to processkillBorders(ImageProcessor)public static final ij.process.ImageProcessor reconstructByDilation(ij.process.ImageProcessor marker,
                                                                    ij.process.ImageProcessor mask)
marker - input marker imagemask - mask imagepublic static final ij.process.ImageProcessor reconstructByDilation(ij.process.ImageProcessor marker,
                                                                    ij.process.ImageProcessor mask,
                                                                    int connectivity)
marker - input marker imagemask - mask imageconnectivity - planar connectivity (4 or 8)public static final ij.process.ImageProcessor reconstructByErosion(ij.process.ImageProcessor marker,
                                                                   ij.process.ImageProcessor mask)
marker - input marker imagemask - mask imagepublic static final ij.process.ImageProcessor reconstructByErosion(ij.process.ImageProcessor marker,
                                                                   ij.process.ImageProcessor mask,
                                                                   int connectivity)
marker - input marker imagemask - mask imageconnectivity - planar connectivity (4 or 8)Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.