Package org.itk.simple
Class SignedDanielssonDistanceMapImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.SignedDanielssonDistanceMapImageFilter
This filter computes the signed distance map of the input image as an
approximation with pixel accuracy to the Euclidean distance.
This class is parameterized over the type of the input image and the
type of the output image.
For purposes of evaluating the signed distance map, the input is
assumed to be binary composed of pixels with value 0 and non-zero.
The inside is considered as having negative distances. Outside is
treated as having positive distances. To change the convention, use
the InsideIsPositive(bool) function.
As a convention, the distance is evaluated from the boundary of the ON
pixels.
The filter returns
A signed distance map with the approximation to the euclidean
distance.
A voronoi partition. (See itkDanielssonDistanceMapImageFilter)
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. (See
itkDanielssonDistanceMapImageFilter)
This filter internally uses the DanielssonDistanceMap filter. This
filter is N-dimensional.
See:
itkDanielssonDistanceMapImageFilter
itk::simple::SignedDanielssonDistanceMap for the procedural interface
itk::SignedDanielssonDistanceMapImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkSignedDanielssonDistanceMapImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::SignedDanielssonDistanceMapImageFilter::SignedDanielssonDistanceMapImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
SignedDanielssonDistanceMapImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::SignedDanielssonDistanceMapImageFilter::~SignedDanielssonDistanceMapImageFilter() DestructorImage itk::simple::SignedDanielssonDistanceMapImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
protected static long
boolean
bool itk::simple::SignedDanielssonDistanceMapImageFilter::GetInsideIsPositive() const Get if the inside represents positive values in the signed distance map.getName()
std::string itk::simple::SignedDanielssonDistanceMapImageFilter::GetName() const Name of this classboolean
bool itk::simple::SignedDanielssonDistanceMapImageFilter::GetSquaredDistance() const Get the distance squared.boolean
bool itk::simple::SignedDanielssonDistanceMapImageFilter::GetUseImageSpacing() const Get whether spacing is used.Image itk::simple::SignedDanielssonDistanceMapImageFilter::GetVectorDistanceMap() const Get vector field of distances.Image itk::simple::SignedDanielssonDistanceMapImageFilter::GetVoronoiMap() const Get Voronoi Map This map shows for each pixel what object is closest to it.void
Self& itk::simple::SignedDanielssonDistanceMapImageFilter::InsideIsPositiveOff()void
Self& itk::simple::SignedDanielssonDistanceMapImageFilter::InsideIsPositiveOn() Set the value of InsideIsPositive to true or false respectfully.void
setInsideIsPositive
(boolean InsideIsPositive) Self& itk::simple::SignedDanielssonDistanceMapImageFilter::SetInsideIsPositive(bool InsideIsPositive) Set if the inside represents positive values in the signed distance map.void
setSquaredDistance
(boolean SquaredDistance) Self& itk::simple::SignedDanielssonDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set if the distance should be squared.void
setUseImageSpacing
(boolean UseImageSpacing) Self& itk::simple::SignedDanielssonDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set if image spacing should be used in computing distances.void
Self& itk::simple::SignedDanielssonDistanceMapImageFilter::SquaredDistanceOff()void
Self& itk::simple::SignedDanielssonDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully.protected static long
toString()
std::string itk::simple::SignedDanielssonDistanceMapImageFilter::ToString() const Print ourselves outvoid
Self& itk::simple::SignedDanielssonDistanceMapImageFilter::UseImageSpacingOff()void
Self& itk::simple::SignedDanielssonDistanceMapImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully.Methods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods 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
-
SignedDanielssonDistanceMapImageFilter
protected SignedDanielssonDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) -
SignedDanielssonDistanceMapImageFilter
public SignedDanielssonDistanceMapImageFilter()itk::simple::SignedDanielssonDistanceMapImageFilter::SignedDanielssonDistanceMapImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::SignedDanielssonDistanceMapImageFilter::~SignedDanielssonDistanceMapImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setInsideIsPositive
public void setInsideIsPositive(boolean InsideIsPositive) Self& itk::simple::SignedDanielssonDistanceMapImageFilter::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::SignedDanielssonDistanceMapImageFilter::InsideIsPositiveOn() Set the value of InsideIsPositive to true or false respectfully. -
insideIsPositiveOff
public void insideIsPositiveOff()Self& itk::simple::SignedDanielssonDistanceMapImageFilter::InsideIsPositiveOff() -
getInsideIsPositive
public boolean getInsideIsPositive()bool itk::simple::SignedDanielssonDistanceMapImageFilter::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::SignedDanielssonDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set if the distance should be squared. -
squaredDistanceOn
public void squaredDistanceOn()Self& itk::simple::SignedDanielssonDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully. -
squaredDistanceOff
public void squaredDistanceOff()Self& itk::simple::SignedDanielssonDistanceMapImageFilter::SquaredDistanceOff() -
getSquaredDistance
public boolean getSquaredDistance()bool itk::simple::SignedDanielssonDistanceMapImageFilter::GetSquaredDistance() const Get the distance squared. -
setUseImageSpacing
public void setUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::SignedDanielssonDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set if image spacing should be used in computing distances. -
useImageSpacingOn
public void useImageSpacingOn()Self& itk::simple::SignedDanielssonDistanceMapImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully. -
useImageSpacingOff
public void useImageSpacingOff()Self& itk::simple::SignedDanielssonDistanceMapImageFilter::UseImageSpacingOff() -
getUseImageSpacing
public boolean getUseImageSpacing()bool itk::simple::SignedDanielssonDistanceMapImageFilter::GetUseImageSpacing() const Get whether spacing is used. -
getVoronoiMap
Image itk::simple::SignedDanielssonDistanceMapImageFilter::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
Image itk::simple::SignedDanielssonDistanceMapImageFilter::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
std::string itk::simple::SignedDanielssonDistanceMapImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::SignedDanielssonDistanceMapImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::SignedDanielssonDistanceMapImageFilter::Execute(const Image &image1) Execute the filter on the input image
-