Class IsolatedWatershedImageFilter

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

public class IsolatedWatershedImageFilter extends ImageFilter
Isolate watershed basins using two seeds. IsolatedWatershedImageFilter labels pixels with ReplaceValue1 that are in the same watershed basin as Seed1 AND NOT the same as Seed2. The filter adjusts the waterlevel until the two seeds are not in different basins. The user supplies a Watershed threshold. The algorithm uses a binary search to adjust the upper waterlevel, starting at UpperValueLimit. UpperValueLimit defaults to the 1.0. See: itk::simple::IsolatedWatershed for the procedural interface itk::IsolatedWatershedImageFilter for the Doxygen on the original ITK class. C++ includes: sitkIsolatedWatershedImageFilter.h
  • Constructor Details

    • IsolatedWatershedImageFilter

      protected IsolatedWatershedImageFilter(long cPtr, boolean cMemoryOwn)
    • IsolatedWatershedImageFilter

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

    • getCPtr

      protected static long getCPtr(IsolatedWatershedImageFilter obj)
    • swigRelease

      protected static long swigRelease(IsolatedWatershedImageFilter obj)
    • finalize

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

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

      public void setSeed1(VectorUInt32 Seed1)
      Self& itk::simple::IsolatedWatershedImageFilter::SetSeed1(std::vector< uint32_t > Seed1) Set seed point 1. This seed will be isolated from Seed2 (if possible). All pixels connected to this seed will be replaced with ReplaceValue1.
    • getSeed1

      public VectorUInt32 getSeed1()
      std::vector<uint32_t> itk::simple::IsolatedWatershedImageFilter::GetSeed1() const Set seed point 1. This seed will be isolated from Seed2 (if possible). All pixels connected to this seed will be replaced with ReplaceValue1.
    • setSeed2

      public void setSeed2(VectorUInt32 Seed2)
      Self& itk::simple::IsolatedWatershedImageFilter::SetSeed2(std::vector< uint32_t > Seed2) Set seed point 2. This seed will be isolated from Seed1 (if possible). All pixels connected to this seed will be replaced with ReplaceValue2.
    • getSeed2

      public VectorUInt32 getSeed2()
      std::vector<uint32_t> itk::simple::IsolatedWatershedImageFilter::GetSeed2() const Set seed point 2. This seed will be isolated from Seed1 (if possible). All pixels connected to this seed will be replaced with ReplaceValue2.
    • setThreshold

      public void setThreshold(double Threshold)
      Self& itk::simple::IsolatedWatershedImageFilter::SetThreshold(double Threshold) Set/Get the Watershed threshold. The default is 0.
    • getThreshold

      public double getThreshold()
      double itk::simple::IsolatedWatershedImageFilter::GetThreshold() const Set/Get the Watershed threshold. The default is 0.
    • setUpperValueLimit

      public void setUpperValueLimit(double UpperValueLimit)
      Self& itk::simple::IsolatedWatershedImageFilter::SetUpperValueLimit(double UpperValueLimit) Set/Get the limit on the upper waterlevel value. The default is 1.0.
    • getUpperValueLimit

      public double getUpperValueLimit()
      double itk::simple::IsolatedWatershedImageFilter::GetUpperValueLimit() const Set/Get the limit on the upper waterlevel value. The default is 1.0.
    • setIsolatedValueTolerance

      public void setIsolatedValueTolerance(double IsolatedValueTolerance)
      Self& itk::simple::IsolatedWatershedImageFilter::SetIsolatedValueTolerance(double IsolatedValueTolerance) Set/Get the precision required for the intensity threshold value. The default is .001.
    • getIsolatedValueTolerance

      public double getIsolatedValueTolerance()
      double itk::simple::IsolatedWatershedImageFilter::GetIsolatedValueTolerance() const Set/Get the precision required for the intensity threshold value. The default is .001.
    • setReplaceValue1

      public void setReplaceValue1(short ReplaceValue1)
      Self& itk::simple::IsolatedWatershedImageFilter::SetReplaceValue1(uint8_t ReplaceValue1) Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value. The default is 1(0).
    • getReplaceValue1

      public short getReplaceValue1()
      uint8_t itk::simple::IsolatedWatershedImageFilter::GetReplaceValue1() const Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value. The default is 1(0).
    • setReplaceValue2

      public void setReplaceValue2(short ReplaceValue2)
      Self& itk::simple::IsolatedWatershedImageFilter::SetReplaceValue2(uint8_t ReplaceValue2) Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value. The default is 1(0).
    • getReplaceValue2

      public short getReplaceValue2()
      uint8_t itk::simple::IsolatedWatershedImageFilter::GetReplaceValue2() const Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value. The default is 1(0).
    • getName

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

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

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