Class HausdorffDistanceImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.HausdorffDistanceImageFilter
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
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::HausdorffDistanceImageFilter::HausdorffDistanceImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedHausdorffDistanceImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::HausdorffDistanceImageFilter::~HausdorffDistanceImageFilter() Destructorvoidvoid itk::simple::HausdorffDistanceImageFilter::Execute(const Image &image1, const Image &image2) Execute the filter on the input imagesprotected voidfinalize()doubledouble itk::simple::HausdorffDistanceImageFilter::GetAverageHausdorffDistance() const Return the computed Hausdorff distance.protected static longdoubledouble itk::simple::HausdorffDistanceImageFilter::GetHausdorffDistance() const Return the computed Hausdorff distance.getName()std::string itk::simple::HausdorffDistanceImageFilter::GetName() const Name of this classprotected static longtoString()std::string itk::simple::HausdorffDistanceImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
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
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::HausdorffDistanceImageFilter::~HausdorffDistanceImageFilter() Destructor- Overrides:
deletein classImageFilter
-
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
std::string itk::simple::HausdorffDistanceImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::HausdorffDistanceImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-