Class ExtendedMinimaWatershed

java.lang.Object
inra.ijpb.watershed.ExtendedMinimaWatershed

public class ExtendedMinimaWatershed
extends java.lang.Object

Static methods for directly computing result of watershed after imposition of extended minima.

Example of use:

  ImagePlus imagePlus = IJ.getImage();
  ImageProcessor image = imagePlus.getProcessor();
  // Computes basins, using a dynamic of 10, and a connectivity equal to 4.
  ImageProcessor basins = ExtendedMinimaWatershed.extendedMinimaWatershed(image, 10, 4);
  ImagePlus resPlus = new ImagePlus("Basins", basins);
  resPlus.show();
 
  • Constructor Summary

    Constructors
    Constructor Description
    ExtendedMinimaWatershed()  
  • Method Summary

    Modifier and Type Method Description
    static ij.ImagePlus extendedMinimaWatershed​(ij.ImagePlus imagePlus, int dynamic, int connectivity)
    Computes watershed on a gray scale image after imposition of extended minima.
    static ij.ImageStack extendedMinimaWatershed​(ij.ImageStack image, int dynamic, int connectivity)
    Computes watershed on a gray scale image after imposition of extended minima.
    static ij.ImageStack extendedMinimaWatershed​(ij.ImageStack image, int dynamic, int connectivity, int outputType)
    Computes watershed on a gray scale image after imposition of extended minima.
    static ij.ImageStack extendedMinimaWatershed​(ij.ImageStack image, ij.ImageStack mask, int dynamic, int connectivity, boolean verbose)
    Computes watershed on a gray scale image after imposition of extended minima.
    static ij.ImageStack extendedMinimaWatershed​(ij.ImageStack image, ij.ImageStack mask, int dynamic, int connectivity, int outputType, boolean verbose)
    Computes watershed on a gray scale image after imposition of extended minima.
    static ij.process.ImageProcessor extendedMinimaWatershed​(ij.process.ImageProcessor image, int dynamic, int connectivity)
    Computes watershed on a gray scale image after imposition of extended minima.
    static ij.process.ImageProcessor extendedMinimaWatershed​(ij.process.ImageProcessor image, int dynamic, int connectivity, int outputType)
    Computes watershed on a gray scale image after imposition of extended minima.
    static ij.process.ImageProcessor extendedMinimaWatershed​(ij.process.ImageProcessor image, ij.process.ImageProcessor mask, int dynamic, int connectivity, boolean verbose)
    Computes watershed on a gray scale image after imposition of extended minima.
    static ij.process.ImageProcessor extendedMinimaWatershed​(ij.process.ImageProcessor image, ij.process.ImageProcessor mask, int dynamic, int connectivity, int outputType, boolean verbose)
    Computes watershed on a gray scale image after imposition of extended minima.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExtendedMinimaWatershed

      public ExtendedMinimaWatershed()
  • Method Details

    • extendedMinimaWatershed

      public static final ij.ImagePlus extendedMinimaWatershed​(ij.ImagePlus imagePlus, int dynamic, int connectivity)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      imagePlus - the input image (grayscale)
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima
    • extendedMinimaWatershed

      public static final ij.process.ImageProcessor extendedMinimaWatershed​(ij.process.ImageProcessor image, int dynamic, int connectivity, int outputType)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      image - the input image (grayscale)
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use, either 4 or 8
      outputType - image output type (16 or 32 bit)
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima
    • extendedMinimaWatershed

      public static final ij.process.ImageProcessor extendedMinimaWatershed​(ij.process.ImageProcessor image, ij.process.ImageProcessor mask, int dynamic, int connectivity, int outputType, boolean verbose)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      image - the input image (grayscale)
      mask - mask image to constraint segmentation
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use, either 4 or 8
      outputType - image output type (16 or 32 bit)
      verbose - flag to show log messages
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima
    • extendedMinimaWatershed

      public static final ij.ImageStack extendedMinimaWatershed​(ij.ImageStack image, ij.ImageStack mask, int dynamic, int connectivity, int outputType, boolean verbose)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      image - the input image (grayscale)
      mask - mask image to constraint segmentation
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use, either 4 or 8
      outputType - image output type (16 or 32 bit)
      verbose - flag to show log messages
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima3D
    • extendedMinimaWatershed

      public static final ij.ImageStack extendedMinimaWatershed​(ij.ImageStack image, int dynamic, int connectivity, int outputType)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      image - the input 3D image (grayscale)
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use, either 6 or 26
      outputType - image output type (16 or 32 bit)
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima3D
    • extendedMinimaWatershed

      public static final ij.process.ImageProcessor extendedMinimaWatershed​(ij.process.ImageProcessor image, int dynamic, int connectivity)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      image - the input image (grayscale)
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use, either 4 or 8
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima
    • extendedMinimaWatershed

      public static final ij.process.ImageProcessor extendedMinimaWatershed​(ij.process.ImageProcessor image, ij.process.ImageProcessor mask, int dynamic, int connectivity, boolean verbose)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      image - the input image (grayscale)
      mask - mask image to constraint segmentation
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use, either 4 or 8
      verbose - flag to show log messages
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima
    • extendedMinimaWatershed

      public static final ij.ImageStack extendedMinimaWatershed​(ij.ImageStack image, ij.ImageStack mask, int dynamic, int connectivity, boolean verbose)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      image - the input image (grayscale)
      mask - mask image to constraint segmentation
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use, either 4 or 8
      verbose - flag to show log messages
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima3D
    • extendedMinimaWatershed

      public static final ij.ImageStack extendedMinimaWatershed​(ij.ImageStack image, int dynamic, int connectivity)
      Computes watershed on a gray scale image after imposition of extended minima.
      Parameters:
      image - the input 3D image (grayscale)
      dynamic - the maximum difference between the minima and the boundary of a basin
      connectivity - the connectivity to use, either 6 or 26
      Returns:
      the image of watershed basins computed on original image, as a label image
      See Also:
      MinimaAndMaxima3D