Class ReinitializeLevelSetImageFilter

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

public class ReinitializeLevelSetImageFilter extends ImageFilter
Reinitialize the level set to the signed distance function. ReinitializeLevelSetImageFilter reinitializes the input level set to the approximated signed distance function from a particular level set. The output is a level set of the same type as the input. For some level set algorithms, it is useful to periodically reinitialize the level set function to prevent numerical accuracy problems in computing derivatives and curvature values where level sets are densely bunched together. This class is templated over the image type which represents the level set. This class supports narrowbanding. If the input narrowband is provided, the algorithm will only locate the level set within the input narrowband. For the output, the reinitialize level set is only valid for a distance of OutputNarrowBandwidth / 2 of either side of the level set of interest. Implementation of this class is based on Chapter 11 of "Level Set Methods and Fast Marching Methods", J.A. Sethian, Cambridge Press, Second edition, 1999. See: itk::simple::ReinitializeLevelSet for the procedural interface itk::ReinitializeLevelSetImageFilter for the Doxygen on the original ITK class. C++ includes: sitkReinitializeLevelSetImageFilter.h
  • Constructor Details

    • ReinitializeLevelSetImageFilter

      protected ReinitializeLevelSetImageFilter(long cPtr, boolean cMemoryOwn)
    • ReinitializeLevelSetImageFilter

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

    • getCPtr

      protected static long getCPtr(ReinitializeLevelSetImageFilter obj)
    • swigRelease

      protected static long swigRelease(ReinitializeLevelSetImageFilter obj)
    • finalize

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

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

      public void setLevelSetValue(double LevelSetValue)
      Self & itk::simple::ReinitializeLevelSetImageFilter::SetLevelSetValue(double LevelSetValue) Set/Get the value of the level set to be located. The default value is 0.
    • getLevelSetValue

      public double getLevelSetValue()
      double itk::simple::ReinitializeLevelSetImageFilter::GetLevelSetValue() const Set/Get the value of the level set to be located. The default value is 0.
    • setNarrowBanding

      public void setNarrowBanding(boolean NarrowBanding)
      Self & itk::simple::ReinitializeLevelSetImageFilter::SetNarrowBanding(bool NarrowBanding) Set/Get the narrowbanding flag. By default, narrowbanding is switched off.
    • narrowBandingOn

      public void narrowBandingOn()
      Self & itk::simple::ReinitializeLevelSetImageFilter::NarrowBandingOn() Set the value of NarrowBanding to true or false respectfully.
    • narrowBandingOff

      public void narrowBandingOff()
      Self & itk::simple::ReinitializeLevelSetImageFilter::NarrowBandingOff()
    • getNarrowBanding

      public boolean getNarrowBanding()
      bool itk::simple::ReinitializeLevelSetImageFilter::GetNarrowBanding() const Set/Get the narrowbanding flag. By default, narrowbanding is switched off.
    • setInputNarrowBandwidth

      public void setInputNarrowBandwidth(double InputNarrowBandwidth)
      Self & itk::simple::ReinitializeLevelSetImageFilter::SetInputNarrowBandwidth(double InputNarrowBandwidth) Set/Get the input narrow bandwidth. The default value is 12.
    • getInputNarrowBandwidth

      public double getInputNarrowBandwidth()
      double itk::simple::ReinitializeLevelSetImageFilter::GetInputNarrowBandwidth() const Set/Get the input narrow bandwidth. The default value is 12.
    • setOutputNarrowBandwidth

      public void setOutputNarrowBandwidth(double OutputNarrowBandwidth)
      Self & itk::simple::ReinitializeLevelSetImageFilter::SetOutputNarrowBandwidth(double OutputNarrowBandwidth) Set/Get the output narrow bandwidth. The default value is 12.
    • getOutputNarrowBandwidth

      public double getOutputNarrowBandwidth()
      double itk::simple::ReinitializeLevelSetImageFilter::GetOutputNarrowBandwidth() const Set/Get the output narrow bandwidth. The default value is 12.
    • getName

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

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

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

      public void narrowBandwidth(double value)
      void itk::simple::ReinitializeLevelSetImageFilter::NarrowBandwidth(double value) Set the bandwidth for both the input and output narrowband, By default, both the input and output are set to 12.