Class MorphologicalWatershedImageFilter

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

public class MorphologicalWatershedImageFilter extends ImageFilter
Watershed segmentation implementation with morphological operators. Watershed pixel are labeled 0. TOutputImage should be an integer type. Labels of output image are in no particular order. You can reorder the labels such that object labels are consecutive and sorted based on object size by passing the output of this filter to a RelabelComponentImageFilter . The morphological watershed transform algorithm is described in Chapter 9.2 of Pierre Soille's book "Morphological Image Analysis: Principles and Applications", Second Edition, Springer, 2003. This code was contributed in the Insight Journal paper: "The watershed transform in ITK - discussion and new developments" by Beare R., Lehmann G. https://www.insight-journal.org/browse/publication/92 Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France. See: WatershedImageFilter , MorphologicalWatershedFromMarkersImageFilter itk::simple::MorphologicalWatershed for the procedural interface itk::MorphologicalWatershedImageFilter for the Doxygen on the original ITK class. C++ includes: sitkMorphologicalWatershedImageFilter.h
  • Constructor Details

    • MorphologicalWatershedImageFilter

      protected MorphologicalWatershedImageFilter(long cPtr, boolean cMemoryOwn)
    • MorphologicalWatershedImageFilter

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

    • getCPtr

      protected static long getCPtr(MorphologicalWatershedImageFilter obj)
    • swigRelease

      protected static long swigRelease(MorphologicalWatershedImageFilter obj)
    • finalize

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

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

      public void setLevel(double Level)
      Self& itk::simple::MorphologicalWatershedImageFilter::SetLevel(double Level)
    • getLevel

      public double getLevel()
      double itk::simple::MorphologicalWatershedImageFilter::GetLevel() const
    • setMarkWatershedLine

      public void setMarkWatershedLine(boolean MarkWatershedLine)
      Self& itk::simple::MorphologicalWatershedImageFilter::SetMarkWatershedLine(bool MarkWatershedLine) Set/Get whether the watershed pixel must be marked or not. Default is true. Set it to false do not only avoid writing watershed pixels, it also decrease algorithm complexity.
    • markWatershedLineOn

      public void markWatershedLineOn()
      Self& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOn() Set the value of MarkWatershedLine to true or false respectfully.
    • markWatershedLineOff

      public void markWatershedLineOff()
      Self& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOff()
    • getMarkWatershedLine

      public boolean getMarkWatershedLine()
      bool itk::simple::MorphologicalWatershedImageFilter::GetMarkWatershedLine() const Set/Get whether the watershed pixel must be marked or not. Default is true. Set it to false do not only avoid writing watershed pixels, it also decrease algorithm complexity.
    • setFullyConnected

      public void setFullyConnected(boolean FullyConnected)
      Self& itk::simple::MorphologicalWatershedImageFilter::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::MorphologicalWatershedImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.
    • fullyConnectedOff

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

      public boolean getFullyConnected()
      bool itk::simple::MorphologicalWatershedImageFilter::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::MorphologicalWatershedImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

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

      public Image execute(Image image1)
      Image itk::simple::MorphologicalWatershedImageFilter::Execute(const Image &image1) Execute the filter on the input image