ITK
4.3.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.
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 | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
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 |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
|
private |
Definition at line 147 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef SmartPointer< const Self > itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 79 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef InputImageType::ConstPointer itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Pointer Type for input image.
Definition at line 108 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef TInputImage itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::InputImageType |
Type for input image.
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.
Definition at line 111 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef TOutputImage itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::OutputImageType |
Type for the output image.
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 |
Definition at line 78 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef ApproximateSignedDistanceMapImageFilter itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::Self |
Standard typedefs
Definition at line 76 of file itkApproximateSignedDistanceMapImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::ApproximateSignedDistanceMapImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 77 of file itkApproximateSignedDistanceMapImageFilter.h.
|
protected |
End concept checking
|
inlineprotectedvirtual |
Definition at line 134 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 |
A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.
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
|
private |
|
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.
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.