ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkApproximateSignedDistanceMapImageFilter.h>
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 Euclidian 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 repesents 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 inernally to perform the distance calculations.
Definition at line 72 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef FastChamferDistanceImageFilter< OutputImageType, OutputImageType > itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::ChamferType [private] |
Definition at line 147 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef SmartPointer< const Self > itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::ConstPointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 79 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef InputImageType::ConstPointer itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Pointer Type for input image.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 108 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef TInputImage itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::InputImageType |
Type for input image.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 85 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef InputImageType::PixelType itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::InputPixelType |
Type for the pixels of the input image.
Definition at line 94 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef IsoContourDistanceImageFilter< InputImageType, OutputImageType > itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::IsoContourType [private] |
Definition at line 146 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef OutputImageType::Pointer itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::OutputImagePointer |
Pointer Type for the output image.
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 111 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef TOutputImage itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::OutputImageType |
Type for the output image.
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 91 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef OutputImageType::PixelType itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Type for the pixels of the output image.
Definition at line 97 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef OutputImageType::SizeType itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::OutputSizeType |
Type of input image size and size value
Definition at line 100 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef OutputSizeType::SizeValueType itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::OutputSizeValueType |
Definition at line 101 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef SmartPointer< Self > itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::Pointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 78 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef ApproximateSignedDistanceMapImageFilter itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::Self |
Standard typedefs
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 76 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::Superclass |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 77 of file itkApproximateSignedDistanceMapImageFilter.h.
itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::ApproximateSignedDistanceMapImageFilter | ( | ) | [protected] |
End concept checking
virtual itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::~ApproximateSignedDistanceMapImageFilter | ( | ) | [inline, protected, virtual] |
End concept checking
Definition at line 133 of file itkApproximateSignedDistanceMapImageFilter.h.
itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::ApproximateSignedDistanceMapImageFilter | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
virtual void itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::GenerateData | ( | ) | [protected, virtual] |
End concept checking
Reimplemented from itk::ImageSource< TOutputImage >.
virtual InputPixelType itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::GetInsideValue | ( | ) | const [virtual] |
Set/Get intensity value representing the interior of objects in the mask
virtual const char* itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual InputPixelType itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::GetOutsideValue | ( | ) | const [virtual] |
Set/Get intensity value representing non-objects in the mask
static Pointer itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::New | ( | ) | [static] |
standard New() method support
Reimplemented from itk::Object.
void itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::operator= | ( | const Self & | ) | [private] |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
void itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual void itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::SetInsideValue | ( | InputPixelType | _arg | ) | [virtual] |
Set/Get intensity value representing the interior of objects in the mask
virtual void itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::SetOutsideValue | ( | InputPixelType | _arg | ) | [virtual] |
Set/Get intensity value representing non-objects in the mask
itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::EqualityComparable< typename InputImageType::PixelType > | ) |
Begin concept checking This class requires InputEqualityComparableCheck in the form of ( Concept::EqualityComparable< typename InputImageType::PixelType > )
const unsigned int itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::InputImageDimension = InputImageType::ImageDimension [static] |
The dimension of the input image.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 105 of file itkApproximateSignedDistanceMapImageFilter.h.
ChamferType::Pointer itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::m_ChamferFilter [private] |
Definition at line 150 of file itkApproximateSignedDistanceMapImageFilter.h.
InputPixelType itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::m_InsideValue [private] |
Definition at line 152 of file itkApproximateSignedDistanceMapImageFilter.h.
IsoContourType::Pointer itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::m_IsoContourFilter [private] |
Definition at line 148 of file itkApproximateSignedDistanceMapImageFilter.h.
InputPixelType itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::m_OutsideValue [private] |
Definition at line 153 of file itkApproximateSignedDistanceMapImageFilter.h.