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 SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::DanielssonDistanceMapImageFilter::DanielssonDistanceMapImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedDanielssonDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::DanielssonDistanceMapImageFilter::~DanielssonDistanceMapImageFilter() DestructorImage itk::simple::DanielssonDistanceMapImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()protected static longbooleanbool itk::simple::DanielssonDistanceMapImageFilter::GetInputIsBinary() const Set/Get if the input is binary.getName()std::string itk::simple::DanielssonDistanceMapImageFilter::GetName() const Name of this classbooleanbool itk::simple::DanielssonDistanceMapImageFilter::GetSquaredDistance() const Set/Get if the distance should be squared.booleanbool 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.voidSelf& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOff()voidSelf& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOn() Set the value of InputIsBinary to true or false respectfully.voidsetInputIsBinary(boolean InputIsBinary) Self& itk::simple::DanielssonDistanceMapImageFilter::SetInputIsBinary(bool InputIsBinary) Set/Get if the input is binary.voidsetSquaredDistance(boolean SquaredDistance) Self& itk::simple::DanielssonDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set/Get if the distance should be squared.voidsetUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::DanielssonDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get if image spacing should be used in computing distances.voidSelf& itk::simple::DanielssonDistanceMapImageFilter::SquaredDistanceOff()voidSelf& itk::simple::DanielssonDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully.protected static longtoString()std::string itk::simple::DanielssonDistanceMapImageFilter::ToString() const Print ourselves outvoidSelf& itk::simple::DanielssonDistanceMapImageFilter::UseImageSpacingOff()voidSelf& itk::simple::DanielssonDistanceMapImageFilter::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- 
DanielssonDistanceMapImageFilterprotected DanielssonDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) 
- 
DanielssonDistanceMapImageFilterpublic DanielssonDistanceMapImageFilter()itk::simple::DanielssonDistanceMapImageFilter::DanielssonDistanceMapImageFilter() 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::DanielssonDistanceMapImageFilter::~DanielssonDistanceMapImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setInputIsBinarypublic 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.
- 
inputIsBinaryOnpublic void inputIsBinaryOn()Self& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOn() Set the value of InputIsBinary to true or false respectfully.
- 
inputIsBinaryOffpublic void inputIsBinaryOff()Self& itk::simple::DanielssonDistanceMapImageFilter::InputIsBinaryOff()
- 
getInputIsBinarypublic 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.
- 
setSquaredDistancepublic void setSquaredDistance(boolean SquaredDistance) Self& itk::simple::DanielssonDistanceMapImageFilter::SetSquaredDistance(bool SquaredDistance) Set/Get if the distance should be squared.
- 
squaredDistanceOnpublic void squaredDistanceOn()Self& itk::simple::DanielssonDistanceMapImageFilter::SquaredDistanceOn() Set the value of SquaredDistance to true or false respectfully.
- 
squaredDistanceOffpublic void squaredDistanceOff()Self& itk::simple::DanielssonDistanceMapImageFilter::SquaredDistanceOff()
- 
getSquaredDistancepublic boolean getSquaredDistance()bool itk::simple::DanielssonDistanceMapImageFilter::GetSquaredDistance() const Set/Get if the distance should be squared.
- 
setUseImageSpacingpublic void setUseImageSpacing(boolean UseImageSpacing) Self& itk::simple::DanielssonDistanceMapImageFilter::SetUseImageSpacing(bool UseImageSpacing) Set/Get if image spacing should be used in computing distances.
- 
useImageSpacingOnpublic void useImageSpacingOn()Self& itk::simple::DanielssonDistanceMapImageFilter::UseImageSpacingOn() Set the value of UseImageSpacing to true or false respectfully.
- 
useImageSpacingOffpublic void useImageSpacingOff()Self& itk::simple::DanielssonDistanceMapImageFilter::UseImageSpacingOff()
- 
getUseImageSpacingpublic boolean getUseImageSpacing()bool itk::simple::DanielssonDistanceMapImageFilter::GetUseImageSpacing() const Set/Get if image spacing should be used in computing distances.
- 
getVoronoiMapImage 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.
- 
getVectorDistanceMapImage 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.
- 
getNamestd::string itk::simple::DanielssonDistanceMapImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::DanielssonDistanceMapImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-