#include <itkBinaryThinningImageFilter3D.h>
This filter computes one-pixel-wide skeleton of a 3D input image.
This class is parametrized over the type of the input image and the type of the output image.
The input is assumed to be a binary image. All non-zero valued voxels are set to 1 internally to simplify the computation. The filter will produce a skeleton of the object. The output background values are 0, and the foreground values are 1.
A 26-neighbourhood configuration is used for the foreground and a 6-neighbourhood configuration for the background. Thinning is performed symmetrically in order to guarantee that the skeleton lies medial within the object.
This filter is a parallel thinning algorithm and is an implementation of the algorithm described in:
T.C. Lee, R.L. Kashyap, and C.N. Chu. Building skeleton models via 3-D medial surface/axis thinning algorithms. Computer Vision, Graphics, and Image Processing, 56(6):462–478, 1994.
To do: Make use of multi-threading.
Definition at line 61 of file itkBinaryThinningImageFilter3D.h.
Inheritance diagram for itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >:
Collaboration diagram for itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >:Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
| static double | GetGlobalDefaultCoordinateTolerance () |
| static double | GetGlobalDefaultDirectionTolerance () |
| static void | SetGlobalDefaultCoordinateTolerance (double) |
| static void | SetGlobalDefaultDirectionTolerance (double) |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
| static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
| using | InputToOutputRegionCopierType |
| using | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
| static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
| static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Static Protected Member Functions inherited from itk::ProcessObject | |
| template<typename TSourceObject> | |
| static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
| static constexpr float | progressFixedToFloat (uint32_t fixed) |
| static uint32_t | progressFloatToFixed (float f) |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
| bool | m_DynamicMultiThreading { true } |
Protected Attributes inherited from itk::ProcessObject | |
| TimeStamp | m_OutputInformationMTime {} |
| bool | m_Updating {} |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::ConstBoundaryConditionType = ConstantBoundaryCondition<TInputImage> |
Boundary condition type for the neighborhood iterator
Definition at line 106 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 70 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::IndexType = typename RegionType::IndexType |
Type for the index of the input image.
Definition at line 88 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType |
Type for the pixel type of the input image.
Definition at line 91 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::ConstPointer |
Pointer Type for input image.
Definition at line 100 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::InputImageType = TInputImage |
Type for input image.
Definition at line 79 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::NeighborhoodIteratorType = NeighborhoodIterator<TInputImage, ConstBoundaryConditionType> |
Neighborhood iterator type
Definition at line 109 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::NeighborhoodType = typename NeighborhoodIteratorType::NeighborhoodType |
Neighborhood type
Definition at line 112 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Type for the pixel type of the input image.
Definition at line 94 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Pointer Type for the output image.
Definition at line 103 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Type for output image: Skeleton of the object.
Definition at line 82 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 69 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::RegionType = typename InputImageType::RegionType |
Type for the region of the input image.
Definition at line 85 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::Self = BinaryThinningImageFilter3D |
Standard class typedefs.
Definition at line 67 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::SizeType = typename RegionType::SizeType |
Type for the size of the input image.
Definition at line 97 of file itkBinaryThinningImageFilter3D.h.
| using itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 68 of file itkBinaryThinningImageFilter3D.h.
|
protected |
|
overrideprotecteddefault |
|
protected |
Compute thinning image.
|
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::LightObject.
|
protected |
Fill the Euler look-up table (LUT) for later check of the Euler invariance (see [Lee94]).
|
overrideprotectedvirtual |
Compute thinning Image.
Reimplemented from itk::ProcessObject.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
| OutputImageType * itk::BinaryThinningImageFilter3D< TInputImage, TOutputImage >::GetThinning | ( | ) |
Get Skeleton by thinning image.
|
protected |
Check for Euler invariance (see [Lee94]).
|
protected |
Check if the current point is a simple point. This method is named 'N(v)_labeling' in [Lee94]. Outputs the number of connected objects in a neighborhood of a point after this point would have been removed.
|
static |
Method for creation through the object factory
|
protected |
Recursive method that calculates the number of connected components in the 3D neighbourhood after the center pixel would have been removed (see) [Lee94]).
|
protected |
Prepare data.
|
overrideprotectedvirtual |
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::LightObject.
|
staticconstexpr |
ImageDimension enumeration
Definition at line 119 of file itkBinaryThinningImageFilter3D.h.
|
staticconstexpr |
Definition at line 120 of file itkBinaryThinningImageFilter3D.h.