Class AreaOpeningQueue

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.attrfilt.AreaOpeningQueue
All Implemented Interfaces:
Algo, AreaOpening

public class AreaOpeningQueue
extends AlgoStub
implements AreaOpening
Area opening using priority queue for updating each regional maxima.
Author:
dlegland
  • Constructor Summary

    Constructors
    Constructor Description
    AreaOpeningQueue()  
  • Method Summary

    Modifier and Type Method Description
    int getConnectivity()
    Returns the current connectivity value for this algorithm.
    ij.process.ImageProcessor process​(ij.process.ImageProcessor image, int minArea)
    Applies area opening on the input grayscale image and returns the result.
    void setConnectivity​(int connectivity)
    Changes the connectivity of this algorithm.

    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

    Methods inherited from interface inra.ijpb.algo.Algo

    addAlgoListener, removeAlgoListener
  • Constructor Details

    • AreaOpeningQueue

      public AreaOpeningQueue()
  • Method Details

    • setConnectivity

      public void setConnectivity​(int connectivity)
      Changes the connectivity of this algorithm.
      Parameters:
      connectivity - the connectivity to use, either 4 or 8
    • getConnectivity

      public int getConnectivity()
      Returns the current connectivity value for this algorithm.
      Returns:
      the current connectivity value (either 4 or 8)
    • process

      public ij.process.ImageProcessor process​(ij.process.ImageProcessor image, int minArea)
      Description copied from interface: AreaOpening
      Applies area opening on the input grayscale image and returns the result.
      Specified by:
      process in interface AreaOpening
      Parameters:
      image - the image to process.
      minArea - the minimal number of pixels the regions need to keep.
      Returns:
      the result of area opening.