#include <vtkImageThicknessThresholdFilter2D.h>
Inheritance diagram for vtkImageThicknessThresholdFilter2D:


vtkImageThicknessThresholdFilter2D a filter that locates areas of a specified thickness in an image that has been processed by vtkImageEuclideanDistance. This 2D implementation of the algorithm supports 5 methods of thickness filtering. The lazy method will find all thicknesses that are less than or equal to the specified thickness. The box-based and spherical-based methods will find only those regions that are the specified thickness. The areas identified as having the desired thickness will be assigned the value of 255, other areas that have a non-zero distance value will be assigned the value of 127. Zero distance values will remain zero in the output image. The spherical -based and box-based complete methods will label all of the thickness regions from largest to smallest. In these methods the pixel values will be assigned the actual thickness in terms of "number of pixels" thick. The two box-based methods tend to cover thickness regions that are larger than the true thickness, so they can be used to generate approximate thickness maps. This filter assumes that the volume or image is isotropic meaning that the spacing is equal in each direction. vtkImageResample may be used to make the image or volume isotropic before the image is processed by vtkImageEuclideanDistance. The vtkImageEuclideanDistance filter expects the output to be type double, so naturally this filter expects the input to be floating point. Also, the ouput of vtkImageEuclideanDistance should be normalized by the image spacing in order for this filter to work correctly.
Definition at line 69 of file vtkImageThicknessThresholdFilter2D.h.
Public Member Functions | |
| vtkTypeRevisionMacro (vtkImageThicknessThresholdFilter2D, vtkSimpleImageToImageFilter) | |
| virtual void | SetThickness (double) |
| virtual double | GetThickness () |
| virtual void | SetThicknessMax (int) |
| virtual int | GetThicknessMax () |
| virtual void | SetAlgorithm (int) |
| virtual int | GetAlgorithm () |
| void | SetAlgorithmToLazy () |
| void | SetAlgorithmToCircularBased () |
| void | SetAlgorithmToCircularBasedComplete () |
| void | SetAlgorithmToBoxBased () |
| void | SetAlgorithmToBoxBasedComplete () |
Static Public Member Functions | |
| static vtkImageThicknessThresholdFilter2D * | New () |
Protected Member Functions | |
| vtkImageThicknessThresholdFilter2D () | |
| ~vtkImageThicknessThresholdFilter2D () | |
| void | InitOutput (int outExt[6], vtkImageData *outData) |
| virtual void | SimpleExecute (vtkImageData *input, vtkImageData *output) |
Protected Attributes | |
| double | Thickness |
| int | ThicknessMax |
| int | Algorithm |
| vtkImageThicknessThresholdFilter2D::vtkImageThicknessThresholdFilter2D | ( | ) | [protected] |
| vtkImageThicknessThresholdFilter2D::~vtkImageThicknessThresholdFilter2D | ( | ) | [inline, protected] |
Definition at line 108 of file vtkImageThicknessThresholdFilter2D.h.
| static vtkImageThicknessThresholdFilter2D* vtkImageThicknessThresholdFilter2D::New | ( | ) | [static] |
Reimplemented from vtkAlgorithm.
| vtkImageThicknessThresholdFilter2D::vtkTypeRevisionMacro | ( | vtkImageThicknessThresholdFilter2D | , | |
| vtkSimpleImageToImageFilter | ||||
| ) |
| virtual void vtkImageThicknessThresholdFilter2D::SetThickness | ( | double | ) | [virtual] |
Set/Get thickness to be filtered.
| virtual double vtkImageThicknessThresholdFilter2D::GetThickness | ( | ) | [virtual] |
Set/Get thickness to be filtered.
| virtual void vtkImageThicknessThresholdFilter2D::SetThicknessMax | ( | int | ) | [virtual] |
Set/Get maximum thickness to be filtered for the complete method.
| virtual int vtkImageThicknessThresholdFilter2D::GetThicknessMax | ( | ) | [virtual] |
Set/Get maximum thickness to be filtered for the complete method.
| virtual void vtkImageThicknessThresholdFilter2D::SetAlgorithm | ( | int | ) | [virtual] |
Selects a thickness threshold algorithm. 0. Lazy 1. Circular-based 2. Circular-based Complete 3. Box-based 4. Box-based Complete
| virtual int vtkImageThicknessThresholdFilter2D::GetAlgorithm | ( | ) | [virtual] |
Selects a thickness threshold algorithm. 0. Lazy 1. Circular-based 2. Circular-based Complete 3. Box-based 4. Box-based Complete
| void vtkImageThicknessThresholdFilter2D::SetAlgorithmToLazy | ( | ) | [inline] |
Selects a thickness threshold algorithm. 0. Lazy 1. Circular-based 2. Circular-based Complete 3. Box-based 4. Box-based Complete
Definition at line 94 of file vtkImageThicknessThresholdFilter2D.h.
References VTK_THICKNESS_TWOD_LAZY.
| void vtkImageThicknessThresholdFilter2D::SetAlgorithmToCircularBased | ( | ) | [inline] |
Selects a thickness threshold algorithm. 0. Lazy 1. Circular-based 2. Circular-based Complete 3. Box-based 4. Box-based Complete
Definition at line 96 of file vtkImageThicknessThresholdFilter2D.h.
References VTK_THICKNESS_TWOD_CIRCULAR_BASED.
| void vtkImageThicknessThresholdFilter2D::SetAlgorithmToCircularBasedComplete | ( | ) | [inline] |
Selects a thickness threshold algorithm. 0. Lazy 1. Circular-based 2. Circular-based Complete 3. Box-based 4. Box-based Complete
Definition at line 98 of file vtkImageThicknessThresholdFilter2D.h.
References VTK_THICKNESS_TWOD_CIRCULAR_BASED_COMPLETE.
| void vtkImageThicknessThresholdFilter2D::SetAlgorithmToBoxBased | ( | ) | [inline] |
Selects a thickness threshold algorithm. 0. Lazy 1. Circular-based 2. Circular-based Complete 3. Box-based 4. Box-based Complete
Definition at line 100 of file vtkImageThicknessThresholdFilter2D.h.
References VTK_THICKNESS_TWOD_BOX_BASED.
| void vtkImageThicknessThresholdFilter2D::SetAlgorithmToBoxBasedComplete | ( | ) | [inline] |
Selects a thickness threshold algorithm. 0. Lazy 1. Circular-based 2. Circular-based Complete 3. Box-based 4. Box-based Complete
Definition at line 102 of file vtkImageThicknessThresholdFilter2D.h.
References VTK_THICKNESS_TWOD_BOX_BASED_COMPLETE.
| void vtkImageThicknessThresholdFilter2D::InitOutput | ( | int | outExt[6], | |
| vtkImageData * | outData | |||
| ) | [protected] |
| virtual void vtkImageThicknessThresholdFilter2D::SimpleExecute | ( | vtkImageData * | input, | |
| vtkImageData * | output | |||
| ) | [protected, virtual] |
Implements vtkSimpleImageToImageFilter.
double vtkImageThicknessThresholdFilter2D::Thickness [protected] |
Definition at line 112 of file vtkImageThicknessThresholdFilter2D.h.
int vtkImageThicknessThresholdFilter2D::ThicknessMax [protected] |
Definition at line 114 of file vtkImageThicknessThresholdFilter2D.h.
int vtkImageThicknessThresholdFilter2D::Algorithm [protected] |
Definition at line 116 of file vtkImageThicknessThresholdFilter2D.h.
1.4.7