Class RegionalExtrema3DByFlooding

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.extrema.RegionalExtrema3DAlgo
inra.ijpb.morphology.extrema.RegionalExtrema3DByFlooding
All Implemented Interfaces:
Algo

public class RegionalExtrema3DByFlooding
extends RegionalExtrema3DAlgo
Computes regional extrema in 3D images using flooding algorithm. This class manages 6 and 26 connectivities as well as integer and floating-point images. Example of use:

 ImageStack image = IJ.getImage().getStack();
 RegionalExtrema3DAlgo algo = new RegionalExtrema3DFlooding(); 
 algo.setExtremaType(ExtremaType.MAXIMA);
 algo.setConnectivity(6);
 ImageStack result = algo.applyTo(image);
 ImagePlus resPlus = new ImagePlus("Regional Maxima", result); 
 resPlus.show(); 
 
Author:
David Legland
See Also:
MinimaAndMaxima3D, FloodFill
  • Constructor Details

    • RegionalExtrema3DByFlooding

      public RegionalExtrema3DByFlooding()
  • Method Details

    • applyTo

      public ij.ImageStack applyTo​(ij.ImageStack image)
      Description copied from class: RegionalExtrema3DAlgo
      Applies this regional extrema algorithm on the 3D image given as argument, and returns the result as a binary image stack.
      Specified by:
      applyTo in class RegionalExtrema3DAlgo
      Parameters:
      image - the 3D image to process
      Returns:
      the result of regional extrema detection
    • applyTo

      public ij.ImageStack applyTo​(ij.ImageStack inputImage, ij.ImageStack maskImage)
      Description copied from class: RegionalExtrema3DAlgo
      Applies this regional extrema algorithm on the 3D image given as argument and using the given mask, and returns the result as a binary image stack.
      Specified by:
      applyTo in class RegionalExtrema3DAlgo
      Parameters:
      inputImage - the 3D image to process
      maskImage - a binary mask
      Returns:
      the result of regional extrema detection