Class HausdorffDistanceImageFilter

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

public class HausdorffDistanceImageFilter extends ImageFilter
Computes the Hausdorff distance between the set of non-zero pixels of two images. HausdorffDistanceImageFilter computes the distance between the set non-zero pixels of two images using the following formula: \\[ H(A,B) = \\max(h(A,B),h(B,A)) \\] where \\[ h(A,B) = \\max_{a \\in A} \\min_{b \\in B} \\| a - b\\| \\] is the directed Hausdorff distance and $A$ and $B$ are respectively the set of non-zero pixels in the first and second input images. In particular, this filter uses the DirectedHausdorffImageFilter inside to compute the two directed distances and then select the largest of the two. The Hausdorff distance measures the degree of mismatch between two sets and behaves like a metric over the set of all closed bounded sets - with properties of identity, symmetry and triangle inequality. This filter requires the largest possible region of the first image and the same corresponding region in the second image. It behaves as filter with two inputs and one output. Thus it can be inserted in a pipeline with other filters. The filter passes the first input through unmodified. This filter is templated over the two input image types. It assume both images have the same number of dimensions. See: DirectedHausdorffDistanceImageFilter itk::HausdorffDistanceImageFilter for the Doxygen on the original ITK class. C++ includes: sitkHausdorffDistanceImageFilter.h
  • Constructor Details

    • HausdorffDistanceImageFilter

      protected HausdorffDistanceImageFilter(long cPtr, boolean cMemoryOwn)
    • HausdorffDistanceImageFilter

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

    • getCPtr

      protected static long getCPtr(HausdorffDistanceImageFilter obj)
    • swigRelease

      protected static long swigRelease(HausdorffDistanceImageFilter obj)
    • finalize

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

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

      public double getHausdorffDistance()
      double itk::simple::HausdorffDistanceImageFilter::GetHausdorffDistance() const Return the computed Hausdorff distance. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getAverageHausdorffDistance

      public double getAverageHausdorffDistance()
      double itk::simple::HausdorffDistanceImageFilter::GetAverageHausdorffDistance() const Return the computed Hausdorff distance. 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::HausdorffDistanceImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

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

      public void execute(Image image1, Image image2)
      void itk::simple::HausdorffDistanceImageFilter::Execute(const Image &image1, const Image &image2) Execute the filter on the input images