Class ApproximateSignedDistanceMapImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.ApproximateSignedDistanceMapImageFilter
Create a map of the approximate signed distance from the boundaries of
a binary image.
The ApproximateSignedDistanceMapImageFilter takes as input a binary image and produces a signed distance map.
Each pixel value in the output contains the approximate distance from
that pixel to the nearest "object" in the binary image. This filter
differs from the DanielssonDistanceMapImageFilter in that it calculates the distance to the "object edge" for pixels
within the object.
Negative values in the output indicate that the pixel at that position
is within an object in the input image. The absolute value of a
negative pixel represents the approximate distance to the nearest
object boundary pixel.
WARNING: This filter requires that the output type be floating-point.
Otherwise internal calculations will not be performed to the
appropriate precision, resulting in completely incorrect (read: zero-
valued) output.
The distances computed by this filter are Chamfer distances, which are
only an approximation to Euclidean distances, and are not as exact
approximations as those calculated by the DanielssonDistanceMapImageFilter . On the other hand, this filter is faster.
This filter requires that an "inside value" and "outside value" be
set as parameters. The "inside value" is the intensity value of the
binary image which corresponds to objects, and the "outside value"
is the intensity of the background. (A typical binary image often
represents objects as black (0) and background as white (usually 255),
or vice-versa.) Note that this filter is slightly faster if the inside
value is less than the outside value. Otherwise an extra iteration
through the image is required.
This filter uses the FastChamferDistanceImageFilter and the IsoContourDistanceImageFilter internally to perform the distance calculations.
See:
 DanielssonDistanceMapImageFilter
 SignedDanielssonDistanceMapImageFilter
 SignedMaurerDistanceMapImageFilter
 FastChamferDistanceImageFilter
 IsoContourDistanceImageFilter
Zach Pincus
See:
 itk::simple::ApproximateSignedDistanceMap for the procedural interface
 itk::ApproximateSignedDistanceMapImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkApproximateSignedDistanceMapImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::ApproximateSignedDistanceMapImageFilter::ApproximateSignedDistanceMapImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedApproximateSignedDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::ApproximateSignedDistanceMapImageFilter::~ApproximateSignedDistanceMapImageFilter() DestructorImage itk::simple::ApproximateSignedDistanceMapImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()protected static longdoubledouble itk::simple::ApproximateSignedDistanceMapImageFilter::GetInsideValue() const Set/Get intensity value representing the interior of objects in the mask.getName()std::string itk::simple::ApproximateSignedDistanceMapImageFilter::GetName() const Name of this classdoubledouble itk::simple::ApproximateSignedDistanceMapImageFilter::GetOutsideValue() const Set/Get intensity value representing non-objects in the mask.voidsetInsideValue(double InsideValue) Self& itk::simple::ApproximateSignedDistanceMapImageFilter::SetInsideValue(double InsideValue) Set/Get intensity value representing the interior of objects in the mask.voidsetOutsideValue(double OutsideValue) Self& itk::simple::ApproximateSignedDistanceMapImageFilter::SetOutsideValue(double OutsideValue) Set/Get intensity value representing non-objects in the mask.protected static longtoString()std::string itk::simple::ApproximateSignedDistanceMapImageFilter::ToString() const Print ourselves outMethods 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- 
ApproximateSignedDistanceMapImageFilterprotected ApproximateSignedDistanceMapImageFilter(long cPtr, boolean cMemoryOwn) 
- 
ApproximateSignedDistanceMapImageFilterpublic ApproximateSignedDistanceMapImageFilter()itk::simple::ApproximateSignedDistanceMapImageFilter::ApproximateSignedDistanceMapImageFilter() 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::ApproximateSignedDistanceMapImageFilter::~ApproximateSignedDistanceMapImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setInsideValuepublic void setInsideValue(double InsideValue) Self& itk::simple::ApproximateSignedDistanceMapImageFilter::SetInsideValue(double InsideValue) Set/Get intensity value representing the interior of objects in the mask.
- 
getInsideValuepublic double getInsideValue()double itk::simple::ApproximateSignedDistanceMapImageFilter::GetInsideValue() const Set/Get intensity value representing the interior of objects in the mask.
- 
setOutsideValuepublic void setOutsideValue(double OutsideValue) Self& itk::simple::ApproximateSignedDistanceMapImageFilter::SetOutsideValue(double OutsideValue) Set/Get intensity value representing non-objects in the mask.
- 
getOutsideValuepublic double getOutsideValue()double itk::simple::ApproximateSignedDistanceMapImageFilter::GetOutsideValue() const Set/Get intensity value representing non-objects in the mask.
- 
getNamestd::string itk::simple::ApproximateSignedDistanceMapImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::ApproximateSignedDistanceMapImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-