VMTK
Loading...
Searching...
No Matches
vtkvmtkLaplacianSegmentationLevelSetImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. 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
20=========================================================================*/
21
42
43#ifndef __vtkvmtkLaplacianSegmentationLevelSetImageFilter_h
44#define __vtkvmtkLaplacianSegmentationLevelSetImageFilter_h
45
46#include "vtkSimpleImageToImageFilter.h"
47#include "vtkvmtkWin32Header.h"
48
49#include "vtkImageData.h"
50
51class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkLaplacianSegmentationLevelSetImageFilter : public vtkSimpleImageToImageFilter
52{
53 public:
55 vtkTypeMacro(vtkvmtkLaplacianSegmentationLevelSetImageFilter, vtkSimpleImageToImageFilter);
56
58
62 vtkGetMacro(IsoSurfaceValue,double);
63 vtkSetMacro(IsoSurfaceValue,double);
65
67
71 vtkGetMacro(NumberOfIterations,int);
72 vtkSetMacro(NumberOfIterations,int);
74
76
80 vtkGetMacro(PropagationScaling,double);
81 vtkSetMacro(PropagationScaling,double);
83
85
89 vtkGetMacro(CurvatureScaling,double);
90 vtkSetMacro(CurvatureScaling,double);
92
94
98 vtkGetMacro(AdvectionScaling,double);
99 vtkSetMacro(AdvectionScaling,double);
101
103
107 vtkGetMacro(MaximumRMSError,double);
108 vtkSetMacro(MaximumRMSError,double);
110
112
117 vtkGetMacro(UseNegativeFeatures,int);
118 vtkSetMacro(UseNegativeFeatures,int);
119 vtkBooleanMacro(UseNegativeFeatures,int);
121
123
128 vtkGetMacro(AutoGenerateSpeedAdvection,int);
129 vtkSetMacro(AutoGenerateSpeedAdvection,int);
130 vtkBooleanMacro(AutoGenerateSpeedAdvection,int);
132
134
138 vtkGetMacro(InterpolateSurfaceLocation,int);
139 vtkSetMacro(InterpolateSurfaceLocation,int);
140 vtkBooleanMacro(InterpolateSurfaceLocation,int);
142
144
148 vtkGetMacro(UseImageSpacing,int);
149 vtkSetMacro(UseImageSpacing,int);
150 vtkBooleanMacro(UseImageSpacing,int);
152
154
158 vtkGetObjectMacro(FeatureImage,vtkImageData);
159 vtkSetObjectMacro(FeatureImage,vtkImageData);
161
163
167 vtkGetObjectMacro(SpeedImage,vtkImageData);
168 vtkSetObjectMacro(SpeedImage,vtkImageData);
170
175 vtkGetMacro(RMSChange,double);
176
182 vtkGetMacro(ElapsedIterations,int);
183
184protected:
187
188 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
189
190private:
192 void operator=(const vtkvmtkLaplacianSegmentationLevelSetImageFilter&); // Not implemented
193
194 double IsoSurfaceValue;
195 int NumberOfIterations;
196 double PropagationScaling;
197 double CurvatureScaling;
198 double AdvectionScaling;
199 double MaximumRMSError;
200 int UseNegativeFeatures;
201 int AutoGenerateSpeedAdvection;
202 int InterpolateSurfaceLocation;
203 int UseImageSpacing;
204 double RMSChange;
205 int ElapsedIterations;
206 vtkImageData* FeatureImage;
207 vtkImageData* SpeedImage;
208};
209
210#endif
211
212
213
214
static vtkvmtkLaplacianSegmentationLevelSetImageFilter * New()
virtual void SimpleExecute(vtkImageData *input, vtkImageData *output) override