ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkMorphologicalSignedDistanceTransformImageFilter.h>
Signed distance transform of a mask using parabolic morphological methods.
Morphological erosions using a parabolic structuring element can be used to compute a distance transform of a mask by setting the "Outside" value to 0 and the "inside" value to +infinity (or beyond the maximum possible value). The output of the parabolic erosion are the square of the distance to the nearest zero valued voxel. Thus we can compute the distance transform by taking the sqrt of the erosion.
The output pixel type needs to support values as large as the square of the largest value of the distance - just use float to be safe.
The inside is considered to have negative distances. Use InsideIsPositive(bool) to change.
There are also OutsideValue methods which can be used in similar ways.
Otherwise it is meant to have an interface to the other DistanceTransforms filters.
Core methods described in the InsightJournal article: "Morphology with parabolic structuring elements"
http://hdl.handle.net/1926/1370
Definition at line 71 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | ImageDimension = TInputImage::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 |
Protected Types | |
typedef itk::ParabolicDilateImageFilter < OutputImageType, OutputImageType > | DilateType |
typedef itk::ParabolicErodeImageFilter < OutputImageType, OutputImageType > | ErodeType |
typedef itk::MorphSDTHelperImageFilter < OutputImageType, OutputImageType > | HelperType |
typedef itk::BinaryThresholdImageFilter < InputImageType, OutputImageType > | ThreshType |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Protected Attributes | |
int | m_ParabolicAlgorithm |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
Private Attributes | |
DilateType::Pointer | m_Dilate |
ErodeType::Pointer | m_Erode |
HelperType::Pointer | m_Helper |
bool | m_InsideIsPositive |
InputPixelType | m_OutsideValue |
ThreshType::Pointer | m_Thresh |
Additional Inherited Members | |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
typedef SmartPointer< const Self > itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 80 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
protected |
Definition at line 192 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
protected |
Definition at line 191 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
protected |
Definition at line 193 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef TInputImage::ConstPointer itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::InputImageConstPointer |
Definition at line 98 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef TInputImage::Pointer itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Smart pointer typedef support.
Definition at line 97 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef TInputImage itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::InputImageType |
Pixel Type of the input image
Definition at line 86 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef TInputImage::PixelType itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::InputPixelType |
Definition at line 91 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef TOutputImage itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::OutputImageType |
Definition at line 90 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef TOutputImage::PixelType itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Definition at line 94 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef SmartPointer< Self > itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 79 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::RadiusType |
a type to represent the "kernel radius"
Definition at line 110 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef NumericTraits< InputPixelType >::RealType itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::RealType |
Definition at line 92 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef NumericTraits< InputPixelType >::ScalarRealType itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::ScalarRealType |
Definition at line 93 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef MorphologicalSignedDistanceTransformImageFilter itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 77 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::MorphologicalSignedDistanceTransformImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 78 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
protected |
Definition at line 190 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
enum itk::MorphologicalSignedDistanceTransformImageFilter::ParabolicAlgorithm |
Enumerator | |
---|---|
NOCHOICE | |
CONTACTPOINT | |
INTERSECTION |
Definition at line 146 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
protected |
Begin concept checking End concept checking
|
inlineprotectedvirtual |
Begin concept checking End concept checking
Definition at line 180 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
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 |
Generate Data
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Get if the inside represents positive values in the signed distance map. See GetInsideIsPositive()
|
virtual |
Runtime information support.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
this describes the input mask - default value 0 - we compute the distance from all voxels with value not equal to "OutsideValue" to the nearest voxel with value "OutsideValue"
|
virtual |
|
inline |
Definition at line 162 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
virtual |
|
virtual |
Set if the inside represents positive values in the signed distance map. By convention ON pixels are treated as inside pixels. Default is true.
|
virtual |
Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data.
Reimplemented from itk::Object.
|
static |
Method for creation through the object factory.
|
protectedvirtual |
Begin concept checking End concept checking
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set if the inside represents positive values in the signed distance map. By convention ON pixels are treated as inside pixels.
|
virtual |
this describes the input mask - default value 0 - we compute the distance from all voxels with value not equal to "OutsideValue" to the nearest voxel with value "OutsideValue"
|
virtual |
Set/Get the method used. Choices are contact point or intersection. Intersection is the default. Contact point can be faster at small scales. This is very unlikely to be the case for a distance transform.
|
inline |
Is the transform in world or voxel units - default is world
Definition at line 138 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
virtual |
|
virtual |
Set On/Off whether spacing is used.
|
static |
Image related typedefs.
Definition at line 106 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
static |
Image related typedefs.
Definition at line 104 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
private |
Definition at line 200 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
private |
Definition at line 199 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
private |
Definition at line 202 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
private |
Definition at line 198 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
private |
Definition at line 195 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
protected |
Definition at line 187 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
private |
Definition at line 201 of file itkMorphologicalSignedDistanceTransformImageFilter.h.
|
static |
Image related typedefs.
Definition at line 102 of file itkMorphologicalSignedDistanceTransformImageFilter.h.