Package org.itk.simple
Class DanielssonDistanceMapImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.DanielssonDistanceMapImageFilter
This filter computes the distance map of the input image as an
approximation with pixel accuracy to the Euclidean distance.
TInputImage
Input Image Type
TOutputImage
Output Image Type
TVoronoiImage
Voronoi Image Type. Note the default value is TInputImage.
The input is assumed to contain numeric codes defining objects. The
filter will produce as output the following images:
A Voronoi partition using the same numeric codes as the input.
A distance map with the approximation to the euclidean distance. from
a particular pixel to the nearest object to this pixel in the input
image.
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.
This filter is N-dimensional and known to be efficient in
computational time. The algorithm is the N-dimensional version of the
4SED algorithm given for two dimensions in:
Danielsson, Per-Erik. Euclidean Distance Mapping. Computer Graphics
and Image Processing 14, 227-248 (1980).
See:
itk::simple::DanielssonDistanceMap for the procedural interface
itk::DanielssonDistanceMapImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkDanielssonDistanceMapImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::DanielssonDistanceMapImageFilter::DanielssonDistanceMapImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
DanielssonDistanceMapImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::DanielssonDistanceMapImageFilter::~DanielssonDistanceMapImageFilter() DestructorImage itk::simple::DanielssonDistanceMapImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
protected static long
boolean
bool itk::simple::DanielssonDistanceMapImageFilter::GetInputIsBinary() const Set/Get if the input is binary.getName()
std::string itk::simple::DanielssonDistanceMapImageFilter::GetName() const Name of this classboolean
bool itk::simple::DanielssonDistanceMapImageFilter::GetSquaredDistance() const Set/Get if the distance should be squared.boolean
bool itk::simple::DanielssonDistanceMapImageFilter::GetUseImageSpacing() const Set/Get if image spacing should be used in computing distances.Image itk::simple::DanielssonDistanceMapImageFilter::GetVectorDistanceMap() const Get vector field of distances.Image itk::simple::DanielssonDistanceMapImageFilter::GetVoronoiMap() const Get Voronoi Map This map shows for each pixel what object is closest to it.void
Self& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOff()void
Self& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOn() Set the value of InputIsBinary to true or false respectfully.void
setInputIsBinary
(boolean InputIsBinary) Self& itk::simple::DanielssonDistanceMapImageFilter::SetInputIsBinary(bool InputIsBinary) Set/Get if the input is binary.void
setSquaredDistance
(boolean SquaredDistance) Self& itk::simple::DanielssonDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set/Get if the distance should be squared.void
setUseImageSpacing
(boolean UseImageSpacing) Self& itk::simple::DanielssonDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get if image spacing should be used in computing distances.void
Self& itk::simple::DanielssonDistanceMapImageFilter::SquaredDistanceOff()void
Self& itk::simple::DanielssonDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully.protected static long
toString()
std::string itk::simple::DanielssonDistanceMapImageFilter::ToString() const Print ourselves outvoid
Self& itk::simple::DanielssonDistanceMapImageFilter::UseImageSpacingOff()void
Self& itk::simple::DanielssonDistanceMapImageFilter::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
-
DanielssonDistanceMapImageFilter
protected DanielssonDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) -
DanielssonDistanceMapImageFilter
public DanielssonDistanceMapImageFilter()itk::simple::DanielssonDistanceMapImageFilter::DanielssonDistanceMapImageFilter() 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::DanielssonDistanceMapImageFilter::~DanielssonDistanceMapImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setInputIsBinary
public void setInputIsBinary(boolean InputIsBinary) Self& itk::simple::DanielssonDistanceMapImageFilter::SetInputIsBinary(bool InputIsBinary) Set/Get if the input is binary. If this variable is set, each nonzero pixel in the input image will be given a unique numeric code to be used by the Voronoi partition. If the image is binary but you are not interested in the Voronoi regions of the different nonzero pixels, then you need not set this. -
inputIsBinaryOn
public void inputIsBinaryOn()Self& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOn() Set the value of InputIsBinary to true or false respectfully. -
inputIsBinaryOff
public void inputIsBinaryOff()Self& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOff() -
getInputIsBinary
public boolean getInputIsBinary()bool itk::simple::DanielssonDistanceMapImageFilter::GetInputIsBinary() const Set/Get if the input is binary. If this variable is set, each nonzero pixel in the input image will be given a unique numeric code to be used by the Voronoi partition. If the image is binary but you are not interested in the Voronoi regions of the different nonzero pixels, then you need not set this. -
setSquaredDistance
public void setSquaredDistance(boolean SquaredDistance) Self& itk::simple::DanielssonDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set/Get if the distance should be squared. -
squaredDistanceOn
public void squaredDistanceOn()Self& itk::simple::DanielssonDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully. -
squaredDistanceOff
public void squaredDistanceOff()Self& itk::simple::DanielssonDistanceMapImageFilter::SquaredDistanceOff() -
getSquaredDistance
public boolean getSquaredDistance()bool itk::simple::DanielssonDistanceMapImageFilter::GetSquaredDistance() const Set/Get if the distance should be squared. -
setUseImageSpacing
public void setUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::DanielssonDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get if image spacing should be used in computing distances. -
useImageSpacingOn
public void useImageSpacingOn()Self& itk::simple::DanielssonDistanceMapImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully. -
useImageSpacingOff
public void useImageSpacingOff()Self& itk::simple::DanielssonDistanceMapImageFilter::UseImageSpacingOff() -
getUseImageSpacing
public boolean getUseImageSpacing()bool itk::simple::DanielssonDistanceMapImageFilter::GetUseImageSpacing() const Set/Get if image spacing should be used in computing distances. -
getVoronoiMap
Image itk::simple::DanielssonDistanceMapImageFilter::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::DanielssonDistanceMapImageFilter::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::DanielssonDistanceMapImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::DanielssonDistanceMapImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::DanielssonDistanceMapImageFilter::Execute(const Image &image1) Execute the filter on the input image
-