VMTK
Loading...
Searching...
No Matches
vtkvmtkAnisotropicDiffusionImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 Portions of this code are covered under the ITK copyright.
13 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm
14 for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notices for more information.
19 Note: this class was contributed by
20 Kurt Sansom
21 https://github.com/kayarre
22
23=========================================================================*/
39
40#ifndef __vtkvmtkAnisotropicDiffusionImageFilter_h
41#define __vtkvmtkAnisotropicDiffusionImageFilter_h
42
43#include "vtkSimpleImageToImageFilter.h"
44#include "vtkvmtkWin32Header.h"
45
46class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkAnisotropicDiffusionImageFilter : public vtkSimpleImageToImageFilter
47{
48 public:
50 vtkTypeMacro(vtkvmtkAnisotropicDiffusionImageFilter, vtkSimpleImageToImageFilter);
51
53
56 vtkGetMacro(NumberOfIterations,int);
57 vtkSetMacro(NumberOfIterations,int);
59
61
67 vtkGetMacro(TimeStep,double);
68 vtkSetMacro(TimeStep,double);
70
72
77 vtkGetMacro(Conductance,double);
78 vtkSetMacro(Conductance,double);
80
81
82protected:
83
86
87 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
88
89private:
90 template< class TImage >
91 int FilterImage( vtkImageData*, vtkImageData*, typename TImage::Pointer );
92
93 template< int VDimension >
94 int FilterScalarImage( vtkImageData* , vtkImageData* , int );
95
97 void operator=(const vtkvmtkAnisotropicDiffusionImageFilter&); // Not implemented.
98
99 int NumberOfIterations;
100 double TimeStep;
101 double Conductance;
102
103};
104
105#endif
106
Wraps itk::GradientAnisotropicDiffusionImageFilter.
static vtkvmtkAnisotropicDiffusionImageFilter * New()