ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkApproximateSignedDistanceMapImageFilter.h>
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | InputImageDimension = InputImageType::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > |
Private Types | |
typedef FastChamferDistanceImageFilter < OutputImageType, OutputImageType > | ChamferType |
typedef IsoContourDistanceImageFilter < InputImageType, OutputImageType > | IsoContourType |
Private Member Functions | |
ApproximateSignedDistanceMapImageFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
ChamferType::Pointer | m_ChamferFilter |
InputPixelType | m_InsideValue |
IsoContourType::Pointer | m_IsoContourFilter |
InputPixelType | m_OutsideValue |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
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.
|
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.
|
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.
|
protected |
End concept checking
|
inlineprotectedvirtual |
End concept checking
Definition at line 133 of file itkApproximateSignedDistanceMapImageFilter.h.
|
private |
|
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.
|
protectedvirtual |
End concept checking
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Set/Get intensity value representing the interior of objects in the mask
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get intensity value representing non-objects in the mask
|
static |
standard New() method support
Reimplemented from itk::Object.
|
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 >.
|
protectedvirtual |
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 |
Set/Get intensity value representing the interior of objects in the mask
|
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 > )
|
static |
The dimension of the input image.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 105 of file itkApproximateSignedDistanceMapImageFilter.h.
|
private |
Definition at line 150 of file itkApproximateSignedDistanceMapImageFilter.h.
|
private |
Definition at line 152 of file itkApproximateSignedDistanceMapImageFilter.h.
|
private |
Definition at line 148 of file itkApproximateSignedDistanceMapImageFilter.h.
|
private |
Definition at line 153 of file itkApproximateSignedDistanceMapImageFilter.h.