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 Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::SignedMaurerDistanceMapImageFilter::SignedMaurerDistanceMapImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedSignedMaurerDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier 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.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
-
SignedMaurerDistanceMapImageFilter
protected SignedMaurerDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) -
SignedMaurerDistanceMapImageFilter
public SignedMaurerDistanceMapImageFilter()itk::simple::SignedMaurerDistanceMapImageFilter::SignedMaurerDistanceMapImageFilter() 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::SignedMaurerDistanceMapImageFilter::~SignedMaurerDistanceMapImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setInsideIsPositive
public 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. -
insideIsPositiveOn
public void insideIsPositiveOn()Self& itk::simple::SignedMaurerDistanceMapImageFilter::InsideIsPositiveOn() Set the value of InsideIsPositive to true or false respectfully. -
insideIsPositiveOff
public void insideIsPositiveOff()Self& itk::simple::SignedMaurerDistanceMapImageFilter::InsideIsPositiveOff() -
getInsideIsPositive
public boolean getInsideIsPositive()bool itk::simple::SignedMaurerDistanceMapImageFilter::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::SignedMaurerDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set if the distance should be squared. -
squaredDistanceOn
public void squaredDistanceOn()Self& itk::simple::SignedMaurerDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully. -
squaredDistanceOff
public void squaredDistanceOff()Self& itk::simple::SignedMaurerDistanceMapImageFilter::SquaredDistanceOff() -
getSquaredDistance
public boolean getSquaredDistance()bool itk::simple::SignedMaurerDistanceMapImageFilter::GetSquaredDistance() const Get the distance squared. -
setUseImageSpacing
public void setUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set if image spacing should be used in computing distances. -
useImageSpacingOn
public void useImageSpacingOn()Self& itk::simple::SignedMaurerDistanceMapImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully. -
useImageSpacingOff
public void useImageSpacingOff()Self& itk::simple::SignedMaurerDistanceMapImageFilter::UseImageSpacingOff() -
getUseImageSpacing
public boolean getUseImageSpacing()bool itk::simple::SignedMaurerDistanceMapImageFilter::GetUseImageSpacing() const Get whether spacing is used. -
setBackgroundValue
public void setBackgroundValue(double BackgroundValue) Self& itk::simple::SignedMaurerDistanceMapImageFilter::SetBackgroundValue(double BackgroundValue) Set the background value which defines the object. Usually this value is = 0. -
getBackgroundValue
public double getBackgroundValue()double itk::simple::SignedMaurerDistanceMapImageFilter::GetBackgroundValue() const Set the background value which defines the object. Usually this value is = 0. -
getName
std::string itk::simple::SignedMaurerDistanceMapImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::SignedMaurerDistanceMapImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-