Class GrayscaleGeodesicErodeImageFilter

java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.GrayscaleGeodesicErodeImageFilter

public class GrayscaleGeodesicErodeImageFilter extends ImageFilter
geodesic gray scale erosion of an image Geodesic erosion operates on a "marker" image and a "mask" image. The marker image is eroded using an elementary structuring element (neighborhood of radius one using only the face connected neighbors). The resulting image is then compared with the mask image. The output image is the pixelwise maximum of the eroded marker image and the mask image. Geodesic erosion is run either one iteration or until convergence. In the convergence case, the filter is equivalent to "reconstruction by erosion". This filter is implemented to handle both scenarios. The one iteration case is multi-threaded. The convergence case is delegated to another instance of the same filter (but configured to run a single iteration). The marker image must be greater than or equal to the mask image (on a pixel by pixel basis). Geodesic morphology is described in Chapter 6 of Pierre Soille's book "Morphological Image Analysis: Principles and Applications", Second Edition, Springer, 2003. A noniterative version of this algorithm can be found in the ReconstructionByErosionImageFilter . This noniterative solution is much faster than the implementation provided here. All ITK filters that previously used GrayscaleGeodesicErodeImageFilter as part of their implementation have been converted to use the ReconstructionByErosionImageFilter . The GrayscaleGeodesicErodeImageFilter is maintained for backward compatibility. See: MorphologyImageFilter , GrayscaleErodeImageFilter , GrayscaleFunctionErodeImageFilter , BinaryErodeImageFilter , ReconstructionByErosionImageFilter itk::simple::GrayscaleGeodesicErode for the procedural interface itk::GrayscaleGeodesicErodeImageFilter for the Doxygen on the original ITK class. C++ includes: sitkGrayscaleGeodesicErodeImageFilter.h
  • Constructor Details

    • GrayscaleGeodesicErodeImageFilter

      protected GrayscaleGeodesicErodeImageFilter(long cPtr, boolean cMemoryOwn)
    • GrayscaleGeodesicErodeImageFilter

      public GrayscaleGeodesicErodeImageFilter()
      itk::simple::GrayscaleGeodesicErodeImageFilter::GrayscaleGeodesicErodeImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(GrayscaleGeodesicErodeImageFilter obj)
    • swigRelease

      protected static long swigRelease(GrayscaleGeodesicErodeImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::GrayscaleGeodesicErodeImageFilter::~GrayscaleGeodesicErodeImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • setRunOneIteration

      public void setRunOneIteration(boolean RunOneIteration)
      Self& itk::simple::GrayscaleGeodesicErodeImageFilter::SetRunOneIteration(bool RunOneIteration) Set/Get whether the filter should run one iteration or until convergence. When run to convergence, this filter is equivalent to "reconstruction by erosion". Default is off.
    • runOneIterationOn

      public void runOneIterationOn()
      Self& itk::simple::GrayscaleGeodesicErodeImageFilter::RunOneIterationOn() Set the value of RunOneIteration to true or false respectfully.
    • runOneIterationOff

      public void runOneIterationOff()
      Self& itk::simple::GrayscaleGeodesicErodeImageFilter::RunOneIterationOff()
    • getRunOneIteration

      public boolean getRunOneIteration()
      bool itk::simple::GrayscaleGeodesicErodeImageFilter::GetRunOneIteration() const Set/Get whether the filter should run one iteration or until convergence. When run to convergence, this filter is equivalent to "reconstruction by erosion". Default is off.
    • setFullyConnected

      public void setFullyConnected(boolean FullyConnected)
      Self& itk::simple::GrayscaleGeodesicErodeImageFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
    • fullyConnectedOn

      public void fullyConnectedOn()
      Self& itk::simple::GrayscaleGeodesicErodeImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.
    • fullyConnectedOff

      public void fullyConnectedOff()
      Self& itk::simple::GrayscaleGeodesicErodeImageFilter::FullyConnectedOff()
    • getFullyConnected

      public boolean getFullyConnected()
      bool itk::simple::GrayscaleGeodesicErodeImageFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
    • getName

      public String getName()
      std::string itk::simple::GrayscaleGeodesicErodeImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::GrayscaleGeodesicErodeImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Image execute(Image image1, Image image2)
      Image itk::simple::GrayscaleGeodesicErodeImageFilter::Execute(const Image &image1, const Image &image2) Execute the filter on the input images