Class SignedDanielssonDistanceMapImageFilter

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

public class SignedDanielssonDistanceMapImageFilter extends ImageFilter
This filter computes the signed distance map of the input image as an approximation with pixel accuracy to the Euclidean distance. This class is parameterized over the type of the input image and the type of the output image. For purposes of evaluating the signed distance map, the input is assumed to be binary composed of pixels with value 0 and non-zero. The inside is considered as having negative distances. Outside is treated as having positive distances. To change the convention, use the InsideIsPositive(bool) function. As a convention, the distance is evaluated from the boundary of the ON pixels. The filter returns A signed distance map with the approximation to the euclidean distance. A voronoi partition. (See itkDanielssonDistanceMapImageFilter) A vector map containing the component of the vector relating the current pixel with the closest point of the closest object to this pixel. Given that the components of the distance are computed in "pixels", the vector is represented by an itk::Offset . That is, physical coordinates are not used. (See itkDanielssonDistanceMapImageFilter) This filter internally uses the DanielssonDistanceMap filter. This filter is N-dimensional. See: itkDanielssonDistanceMapImageFilter itk::simple::SignedDanielssonDistanceMap for the procedural interface itk::SignedDanielssonDistanceMapImageFilter for the Doxygen on the original ITK class. C++ includes: sitkSignedDanielssonDistanceMapImageFilter.h
  • Constructor Details

    • SignedDanielssonDistanceMapImageFilter

      protected SignedDanielssonDistanceMapImageFilter(long cPtr, boolean cMemoryOwn)
    • SignedDanielssonDistanceMapImageFilter

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

    • getCPtr

      protected static long getCPtr(SignedDanielssonDistanceMapImageFilter obj)
    • swigRelease

      protected static long swigRelease(SignedDanielssonDistanceMapImageFilter obj)
    • finalize

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

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

      public void setInsideIsPositive(boolean InsideIsPositive)
      Self& itk::simple::SignedDanielssonDistanceMapImageFilter::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::SignedDanielssonDistanceMapImageFilter::InsideIsPositiveOn() Set the value of InsideIsPositive to true or false respectfully.
    • insideIsPositiveOff

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

      public boolean getInsideIsPositive()
      bool itk::simple::SignedDanielssonDistanceMapImageFilter::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::SignedDanielssonDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set if the distance should be squared.
    • squaredDistanceOn

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

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

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

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

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

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

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

      public Image getVoronoiMap()
      Image itk::simple::SignedDanielssonDistanceMapImageFilter::GetVoronoiMap() const Get Voronoi Map This map shows for each pixel what object is closest to it. Each object should be labeled by a number (larger than 0), so the map has a value for each pixel corresponding to the label of the closest object. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getVectorDistanceMap

      public Image getVectorDistanceMap()
      Image itk::simple::SignedDanielssonDistanceMapImageFilter::GetVectorDistanceMap() const Get vector field of distances. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getName

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

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

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