Class SignedMaurerDistanceMapImageFilter

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

public class SignedMaurerDistanceMapImageFilter extends ImageFilter
This filter calculates the Euclidean distance transform of a binary image in linear time for arbitrary dimensions. Inputs and Outputs This is an image-to-image filter. The dimensionality is arbitrary. The only dimensionality constraint is that the input and output images be of the same dimensions and size. To maintain integer arithmetic within the filter, the default output is the signed squared distance. This implies that the input image should be of type "unsigned int" or "int" whereas the output image is of type "int". Obviously, if the user wishes to utilize the image spacing or to have a filter with the Euclidean distance (as opposed to the squared distance), output image types of float or double should be used. The inside is considered as having negative distances. Outside is treated as having positive distances. To change the convention, use the InsideIsPositive(bool) function. Parameters Set/GetBackgroundValue specifies the background of the value of the input binary image. Normally this is zero and, as such, zero is the default value. Other than that, the usage is completely analogous to the itk::DanielssonDistanceImageFilter class except it does not return the Voronoi map. Reference: C. R. Maurer, Jr., R. Qi, and V. Raghavan, "A Linear Time Algorithm for Computing Exact Euclidean Distance Transforms of Binary Images in Arbitrary Dimensions", IEEE - Transactions on Pattern Analysis and Machine Intelligence, 25(2): 265-270, 2003. See: itk::simple::SignedMaurerDistanceMap for the procedural interface itk::SignedMaurerDistanceMapImageFilter for the Doxygen on the original ITK class. C++ includes: sitkSignedMaurerDistanceMapImageFilter.h
  • Constructor Details

    • SignedMaurerDistanceMapImageFilter

      protected SignedMaurerDistanceMapImageFilter(long cPtr, boolean cMemoryOwn)
    • SignedMaurerDistanceMapImageFilter

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

    • getCPtr

      protected static long getCPtr(SignedMaurerDistanceMapImageFilter obj)
    • swigRelease

      protected static long swigRelease(SignedMaurerDistanceMapImageFilter obj)
    • finalize

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

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

      public void setInsideIsPositive(boolean InsideIsPositive)
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetInsideIsPositive(bool InsideIsPositive) Set if the inside represents positive values in the signed distance map. By convention ON pixels are treated as inside pixels.
    • insideIsPositiveOn

      public void insideIsPositiveOn()
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::InsideIsPositiveOn() Set the value of InsideIsPositive to true or false respectfully.
    • insideIsPositiveOff

      public void insideIsPositiveOff()
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::InsideIsPositiveOff()
    • getInsideIsPositive

      public boolean getInsideIsPositive()
      bool itk::simple::SignedMaurerDistanceMapImageFilter::GetInsideIsPositive() const Get if the inside represents positive values in the signed distance map. See: GetInsideIsPositive()
    • setSquaredDistance

      public void setSquaredDistance(boolean SquaredDistance)
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set if the distance should be squared.
    • squaredDistanceOn

      public void squaredDistanceOn()
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully.
    • squaredDistanceOff

      public void squaredDistanceOff()
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::SquaredDistanceOff()
    • getSquaredDistance

      public boolean getSquaredDistance()
      bool itk::simple::SignedMaurerDistanceMapImageFilter::GetSquaredDistance() const Get the distance squared.
    • setUseImageSpacing

      public void setUseImageSpacing(boolean UseImageSpacing)
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set if image spacing should be used in computing distances.
    • useImageSpacingOn

      public void useImageSpacingOn()
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully.
    • useImageSpacingOff

      public void useImageSpacingOff()
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::UseImageSpacingOff()
    • getUseImageSpacing

      public boolean getUseImageSpacing()
      bool itk::simple::SignedMaurerDistanceMapImageFilter::GetUseImageSpacing() const Get whether spacing is used.
    • setBackgroundValue

      public void setBackgroundValue(double BackgroundValue)
      Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetBackgroundValue(double BackgroundValue) Set the background value which defines the object. Usually this value is = 0.
    • getBackgroundValue

      public double getBackgroundValue()
      double itk::simple::SignedMaurerDistanceMapImageFilter::GetBackgroundValue() const Set the background value which defines the object. Usually this value is = 0.
    • getName

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

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

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