Class LabelSizeFiltering

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.label.select.LabelSizeFiltering
All Implemented Interfaces:
Algo

public class LabelSizeFiltering
extends AlgoStub
Filter labels using a size criterion.
Author:
dlegland
  • Constructor Summary

    Constructors
    Constructor Description
    LabelSizeFiltering​(RelationalOperator operator, int sizeLimit)
    Default constructor, specifying the operator and the size limit.
  • Method Summary

    Modifier and Type Method Description
    ij.ImagePlus process​(ij.ImagePlus imagePlus)
    Applies size filtering on the input image.
    ij.ImageStack process​(ij.ImageStack labelImage)
    Applies size filtering on the input 3D label image.
    ij.process.ImageProcessor process​(ij.process.ImageProcessor labelImage)
    Applies size filtering on the input 2D label image.

    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
  • Constructor Details

    • LabelSizeFiltering

      public LabelSizeFiltering​(RelationalOperator operator, int sizeLimit)
      Default constructor, specifying the operator and the size limit.
      Parameters:
      operator - the relational operator to use for filtering
      sizeLimit - the argument for the relation operator
  • Method Details

    • process

      public ij.ImagePlus process​(ij.ImagePlus imagePlus)
      Applies size filtering on the input image.
      Parameters:
      imagePlus - the image to process
      Returns:
      the filtered image
    • process

      public ij.process.ImageProcessor process​(ij.process.ImageProcessor labelImage)
      Applies size filtering on the input 2D label image.
      Parameters:
      labelImage - the image to process
      Returns:
      the filtered image
    • process

      public ij.ImageStack process​(ij.ImageStack labelImage)
      Applies size filtering on the input 3D label image.
      Parameters:
      labelImage - the image to process
      Returns:
      the filtered image