Class SignedMaurerDistanceMapImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.SignedMaurerDistanceMapImageFilter
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
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::SignedMaurerDistanceMapImageFilter::SignedMaurerDistanceMapImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedSignedMaurerDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::SignedMaurerDistanceMapImageFilter::~SignedMaurerDistanceMapImageFilter() DestructorImage itk::simple::SignedMaurerDistanceMapImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()doubledouble itk::simple::SignedMaurerDistanceMapImageFilter::GetBackgroundValue() const Set the background value which defines the object.protected static longbooleanbool itk::simple::SignedMaurerDistanceMapImageFilter::GetInsideIsPositive() const Get if the inside represents positive values in the signed distance map.getName()std::string itk::simple::SignedMaurerDistanceMapImageFilter::GetName() const Name of this classbooleanbool itk::simple::SignedMaurerDistanceMapImageFilter::GetSquaredDistance() const Get the distance squared.booleanbool itk::simple::SignedMaurerDistanceMapImageFilter::GetUseImageSpacing() const Get whether spacing is used.voidSelf& itk::simple::SignedMaurerDistanceMapImageFilter::InsideIsPositiveOff()voidSelf& itk::simple::SignedMaurerDistanceMapImageFilter::InsideIsPositiveOn() Set the value of InsideIsPositive to true or false respectfully.voidsetBackgroundValue(double BackgroundValue) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetBackgroundValue(double BackgroundValue) Set the background value which defines the object.voidsetInsideIsPositive(boolean InsideIsPositive) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetInsideIsPositive(bool InsideIsPositive) Set if the inside represents positive values in the signed distance map.voidsetSquaredDistance(boolean SquaredDistance) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set if the distance should be squared.voidsetUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set if image spacing should be used in computing distances.voidSelf& itk::simple::SignedMaurerDistanceMapImageFilter::SquaredDistanceOff()voidSelf& itk::simple::SignedMaurerDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully.protected static longtoString()std::string itk::simple::SignedMaurerDistanceMapImageFilter::ToString() const Print ourselves outvoidSelf& itk::simple::SignedMaurerDistanceMapImageFilter::UseImageSpacingOff()voidSelf& itk::simple::SignedMaurerDistanceMapImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully.Methods inherited from class org.itk.simple.ImageFiltergetCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObjectabort, 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- 
SignedMaurerDistanceMapImageFilterprotected SignedMaurerDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) 
- 
SignedMaurerDistanceMapImageFilterpublic SignedMaurerDistanceMapImageFilter()itk::simple::SignedMaurerDistanceMapImageFilter::SignedMaurerDistanceMapImageFilter() Default Constructor that takes no arguments and initializes default parameters
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ImageFilter
 
- 
deletepublic void delete()virtual itk::simple::SignedMaurerDistanceMapImageFilter::~SignedMaurerDistanceMapImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setInsideIsPositivepublic 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.
- 
insideIsPositiveOnpublic void insideIsPositiveOn()Self& itk::simple::SignedMaurerDistanceMapImageFilter::InsideIsPositiveOn() Set the value of InsideIsPositive to true or false respectfully.
- 
insideIsPositiveOffpublic void insideIsPositiveOff()Self& itk::simple::SignedMaurerDistanceMapImageFilter::InsideIsPositiveOff()
- 
getInsideIsPositivepublic boolean getInsideIsPositive()bool itk::simple::SignedMaurerDistanceMapImageFilter::GetInsideIsPositive() const Get if the inside represents positive values in the signed distance map. See: GetInsideIsPositive()
- 
setSquaredDistancepublic void setSquaredDistance(boolean SquaredDistance) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set if the distance should be squared.
- 
squaredDistanceOnpublic void squaredDistanceOn()Self& itk::simple::SignedMaurerDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully.
- 
squaredDistanceOffpublic void squaredDistanceOff()Self& itk::simple::SignedMaurerDistanceMapImageFilter::SquaredDistanceOff()
- 
getSquaredDistancepublic boolean getSquaredDistance()bool itk::simple::SignedMaurerDistanceMapImageFilter::GetSquaredDistance() const Get the distance squared.
- 
setUseImageSpacingpublic void setUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set if image spacing should be used in computing distances.
- 
useImageSpacingOnpublic void useImageSpacingOn()Self& itk::simple::SignedMaurerDistanceMapImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully.
- 
useImageSpacingOffpublic void useImageSpacingOff()Self& itk::simple::SignedMaurerDistanceMapImageFilter::UseImageSpacingOff()
- 
getUseImageSpacingpublic boolean getUseImageSpacing()bool itk::simple::SignedMaurerDistanceMapImageFilter::GetUseImageSpacing() const Get whether spacing is used.
- 
setBackgroundValuepublic void setBackgroundValue(double BackgroundValue) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetBackgroundValue(double BackgroundValue) Set the background value which defines the object. Usually this value is = 0.
- 
getBackgroundValuepublic double getBackgroundValue()double itk::simple::SignedMaurerDistanceMapImageFilter::GetBackgroundValue() const Set the background value which defines the object. Usually this value is = 0.
- 
getNamestd::string itk::simple::SignedMaurerDistanceMapImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::SignedMaurerDistanceMapImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-