Class RegionalExtremaByFlooding

java.lang.Object
inra.ijpb.morphology.extrema.RegionalExtremaAlgo
inra.ijpb.morphology.extrema.RegionalExtremaByFlooding

public class RegionalExtremaByFlooding
extends RegionalExtremaAlgo
Computes regional extrema in planar images using flooding algorithm. This class manages 4 and 8 connectivities. All computations are performed using double, making it generic for 8-, 16- or 32-bit images. Example of use:

 ImageProcessor image = IJ.getImage().getProcessor();
 RegionalExtremaAlgo algo = new RegionalExtremaByFlooding(); 
 algo.setExtremaType(ExtremaType.MAXIMA);
 algo.setConnectivity(4);
 ImageProcessor result = algo.applyTo(image);
 ImagePlus resPlus = new ImagePlus("Regional Extrema", result); 
 resPlus.show(); 
 
  • Constructor Details

    • RegionalExtremaByFlooding

      public RegionalExtremaByFlooding()
  • Method Details

    • applyTo

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