Class AttributeFiltering

java.lang.Object
inra.ijpb.morphology.AttributeFiltering

public class AttributeFiltering
extends java.lang.Object
Several static methods for computation of attribute filtering (opening, thinning...) on gray level images.
Author:
dlegland
  • Constructor Summary

    Constructors
    Constructor Description
    AttributeFiltering()  
  • Method Summary

    Modifier and Type Method Description
    static ij.process.ImageProcessor areaOpening​(ij.process.ImageProcessor image, int minArea)
    Applies grayscale area opening on input image, by retaining only the connected components that contain at least the specified number of pixels.
    static ij.ImagePlus sizeOpening​(ij.ImagePlus imagePlus, int minSize)
    Applies grayscale size opening on input image, by retaining only the connected components that contain at least the specified number of elements (pixels or voxels).
    static ij.ImageStack volumeOpening​(ij.ImageStack image, int minVolume)
    Applies grayscale volume opening on input 3D image, by retaining only the connected components that contain at least the specified number of voxels.
    static ij.ImageStack volumeOpening​(ij.ImageStack image, int minVolume, int connectivity)
    Applies grayscale volume opening on input 3D image, by retaining only the connected components that contain at least the specified number of voxels.

    Methods inherited from class java.lang.Object

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

    • AttributeFiltering

      public AttributeFiltering()
  • Method Details

    • sizeOpening

      public static final ij.ImagePlus sizeOpening​(ij.ImagePlus imagePlus, int minSize)
      Applies grayscale size opening on input image, by retaining only the connected components that contain at least the specified number of elements (pixels or voxels).
      Parameters:
      imagePlus - instance of ImagePlus containing the input 2D or 3D image
      minSize - the minimum number of pixels or voxels at a given gray level
      Returns:
      the result of grayscale size opening on the input image
    • areaOpening

      public static final ij.process.ImageProcessor areaOpening​(ij.process.ImageProcessor image, int minArea)
      Applies grayscale area opening on input image, by retaining only the connected components that contain at least the specified number of pixels.
      Parameters:
      image - input grayscale image
      minArea - the minimum number of pixels at a given gray level
      Returns:
      the result of grayscale size opening on the input image
    • volumeOpening

      public static final ij.ImageStack volumeOpening​(ij.ImageStack image, int minVolume)
      Applies grayscale volume opening on input 3D image, by retaining only the connected components that contain at least the specified number of voxels.
      Parameters:
      image - input 3D grayscale image
      minVolume - the minimum number of voxels at a given gray level
      Returns:
      the result of grayscale size opening on the input image
    • volumeOpening

      public static final ij.ImageStack volumeOpening​(ij.ImageStack image, int minVolume, int connectivity)
      Applies grayscale volume opening on input 3D image, by retaining only the connected components that contain at least the specified number of voxels.
      Parameters:
      image - input 3D grayscale image
      minVolume - the minimum number of voxels at a given gray level
      connectivity - 3D connectivity to use
      Returns:
      the result of grayscale size opening on the input image