Class DanielssonDistanceMapImageFilter

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

public class DanielssonDistanceMapImageFilter extends ImageFilter
This filter computes the distance map of the input image as an approximation with pixel accuracy to the Euclidean distance. TInputImage Input Image Type TOutputImage Output Image Type TVoronoiImage Voronoi Image Type. Note the default value is TInputImage. The input is assumed to contain numeric codes defining objects. The filter will produce as output the following images: A Voronoi partition using the same numeric codes as the input. A distance map with the approximation to the euclidean distance. from a particular pixel to the nearest object to this pixel in the input image. 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. This filter is N-dimensional and known to be efficient in computational time. The algorithm is the N-dimensional version of the 4SED algorithm given for two dimensions in: Danielsson, Per-Erik. Euclidean Distance Mapping. Computer Graphics and Image Processing 14, 227-248 (1980). See: itk::simple::DanielssonDistanceMap for the procedural interface itk::DanielssonDistanceMapImageFilter for the Doxygen on the original ITK class. C++ includes: sitkDanielssonDistanceMapImageFilter.h
  • Constructor Details

    • DanielssonDistanceMapImageFilter

      protected DanielssonDistanceMapImageFilter(long cPtr, boolean cMemoryOwn)
    • DanielssonDistanceMapImageFilter

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

    • getCPtr

      protected static long getCPtr(DanielssonDistanceMapImageFilter obj)
    • swigRelease

      protected static long swigRelease(DanielssonDistanceMapImageFilter obj)
    • finalize

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

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

      public void setInputIsBinary(boolean InputIsBinary)
      Self& itk::simple::DanielssonDistanceMapImageFilter::SetInputIsBinary(bool InputIsBinary) Set/Get if the input is binary. If this variable is set, each nonzero pixel in the input image will be given a unique numeric code to be used by the Voronoi partition. If the image is binary but you are not interested in the Voronoi regions of the different nonzero pixels, then you need not set this.
    • inputIsBinaryOn

      public void inputIsBinaryOn()
      Self& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOn() Set the value of InputIsBinary to true or false respectfully.
    • inputIsBinaryOff

      public void inputIsBinaryOff()
      Self& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOff()
    • getInputIsBinary

      public boolean getInputIsBinary()
      bool itk::simple::DanielssonDistanceMapImageFilter::GetInputIsBinary() const Set/Get if the input is binary. If this variable is set, each nonzero pixel in the input image will be given a unique numeric code to be used by the Voronoi partition. If the image is binary but you are not interested in the Voronoi regions of the different nonzero pixels, then you need not set this.
    • setSquaredDistance

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

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

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

      public boolean getSquaredDistance()
      bool itk::simple::DanielssonDistanceMapImageFilter::GetSquaredDistance() const Set/Get if the distance should be squared.
    • setUseImageSpacing

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

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

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

      public boolean getUseImageSpacing()
      bool itk::simple::DanielssonDistanceMapImageFilter::GetUseImageSpacing() const Set/Get if image spacing should be used in computing distances.
    • getVoronoiMap

      public Image getVoronoiMap()
      Image itk::simple::DanielssonDistanceMapImageFilter::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::DanielssonDistanceMapImageFilter::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::DanielssonDistanceMapImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

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

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