Class MorphologicalFilter

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.filter.MorphologicalFilter
All Implemented Interfaces:
Algo, AlgoListener
Direct Known Subclasses:
BlackTopHat, Closing, Dilation, Erosion, ExternalGradient, Gradient, InternalGradient, Laplacian, Opening, WhiteTopHat

public abstract class MorphologicalFilter
extends AlgoStub
implements AlgoListener
Base class for morphological filters, based on a structuring element. Can process ScalarArray instances, or VectorArray instances, and return array the same type and the same size as input arrays. In the case of VectorArray instances the process is applied on each channel / component image of the vector image).
Author:
dlegland
See Also:
Strel
  • Method Summary

    Modifier and Type Method Description
    void algoProgressChanged​(AlgoEvent evt)
    The method devoted to manage the change in the progression of the algorithm.
    void algoStatusChanged​(AlgoEvent evt)
    The method devoted to manage the change in the status of the algorithm.
    Strel3D getStrel()  
    ij.ImagePlus process​(ij.ImagePlus imagePlus)
    Applies the morphological filter to the input ImagePlus, and returns a new instance of ImagePlus.
    abstract ij.ImageStack process​(ij.ImageStack image)
    Apply filtering operation on the specified 3D image, and returns the result as a new instance of ImageStack.
    abstract ij.process.ImageProcessor process​(ij.process.ImageProcessor image)
    Apply filtering operation on the specified image, and returns the result as a new instance of ImageProcessor.

    Methods inherited from class inra.ijpb.algo.AlgoStub

    addAlgoListener, removeAlgoListener

    Methods inherited from class java.lang.Object

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

    • process

      public ij.ImagePlus process​(ij.ImagePlus imagePlus)
      Applies the morphological filter to the input ImagePlus, and returns a new instance of ImagePlus. The settings of the input image (calibration, colormap...) are propagated to the result image
      Parameters:
      imagePlus - the image to process
      Returns:
      the result of filtering operation
    • process

      public abstract ij.process.ImageProcessor process​(ij.process.ImageProcessor image)
      Apply filtering operation on the specified image, and returns the result as a new instance of ImageProcessor.
      Parameters:
      image - the image to process
      Returns:
      the result of morphological filter.
    • process

      public abstract ij.ImageStack process​(ij.ImageStack image)
      Apply filtering operation on the specified 3D image, and returns the result as a new instance of ImageStack.
      Parameters:
      image - the image to process
      Returns:
      the result of morphological filter.
    • getStrel

      public Strel3D getStrel()
      Returns:
      the structuring element associated to this operator. This can be also an instance of the Strel interface.
    • algoProgressChanged

      public void algoProgressChanged​(AlgoEvent evt)
      Description copied from interface: AlgoListener
      The method devoted to manage the change in the progression of the algorithm.
      Specified by:
      algoProgressChanged in interface AlgoListener
      Parameters:
      evt - the AlgoEvent instance containing info about the algorithm.
    • algoStatusChanged

      public void algoStatusChanged​(AlgoEvent evt)
      Description copied from interface: AlgoListener
      The method devoted to manage the change in the status of the algorithm.
      Specified by:
      algoStatusChanged in interface AlgoListener
      Parameters:
      evt - the AlgoEvent instance containing info about the algorithm.