VMTK
Loading...
Searching...
No Matches
vtkvmtkThresholdSegmentationLevelSetImageFilter.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
44
45#ifndef __vtkvmtkThresholdSegmentationLevelSetImageFilter_h
46#define __vtkvmtkThresholdSegmentationLevelSetImageFilter_h
47
48#include "vtkSimpleImageToImageFilter.h"
49#include "vtkvmtkWin32Header.h"
50
51#include "vtkImageData.h"
52
53class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkThresholdSegmentationLevelSetImageFilter : public vtkSimpleImageToImageFilter
54{
55 public:
57 vtkTypeMacro(vtkvmtkThresholdSegmentationLevelSetImageFilter, vtkSimpleImageToImageFilter);
58
60
64 vtkGetMacro(UpperThreshold,double);
65 vtkSetMacro(UpperThreshold,double);
67
69
73 vtkGetMacro(LowerThreshold,double);
74 vtkSetMacro(LowerThreshold,double);
76
78
82 vtkGetMacro(EdgeWeight,double);
83 vtkSetMacro(EdgeWeight,double);
85
87
91 vtkGetMacro(SmoothingIterations,int);
92 vtkSetMacro(SmoothingIterations,int);
94
96
100 vtkGetMacro(SmoothingTimeStep,double);
101 vtkSetMacro(SmoothingTimeStep,double);
103
105
109 vtkGetMacro(SmoothingConductance,double);
110 vtkSetMacro(SmoothingConductance,double);
112
114
118 vtkGetMacro(IsoSurfaceValue,double);
119 vtkSetMacro(IsoSurfaceValue,double);
121
123
127 vtkGetMacro(NumberOfIterations,int);
128 vtkSetMacro(NumberOfIterations,int);
130
132
136 vtkGetMacro(PropagationScaling,double);
137 vtkSetMacro(PropagationScaling,double);
139
141
145 vtkGetMacro(CurvatureScaling,double);
146 vtkSetMacro(CurvatureScaling,double);
148
150
154 vtkGetMacro(AdvectionScaling,double);
155 vtkSetMacro(AdvectionScaling,double);
157
159
163 vtkGetMacro(MaximumRMSError,double);
164 vtkSetMacro(MaximumRMSError,double);
166
168
173 vtkGetMacro(UseNegativeFeatures,int);
174 vtkSetMacro(UseNegativeFeatures,int);
175 vtkBooleanMacro(UseNegativeFeatures,int);
177
179
184 vtkGetMacro(AutoGenerateSpeedAdvection,int);
185 vtkSetMacro(AutoGenerateSpeedAdvection,int);
186 vtkBooleanMacro(AutoGenerateSpeedAdvection,int);
188
190
194 vtkGetMacro(InterpolateSurfaceLocation,int);
195 vtkSetMacro(InterpolateSurfaceLocation,int);
196 vtkBooleanMacro(InterpolateSurfaceLocation,int);
198
200
204 vtkGetMacro(UseImageSpacing,int);
205 vtkSetMacro(UseImageSpacing,int);
206 vtkBooleanMacro(UseImageSpacing,int);
208
210
215 vtkGetObjectMacro(FeatureImage,vtkImageData);
216 vtkSetObjectMacro(FeatureImage,vtkImageData);
218
220
224 vtkGetObjectMacro(SpeedImage,vtkImageData);
225 vtkSetObjectMacro(SpeedImage,vtkImageData);
227
232 vtkGetMacro(RMSChange,double);
233
239 vtkGetMacro(ElapsedIterations,int);
240
241protected:
244
245 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
246
247private:
249 void operator=(const vtkvmtkThresholdSegmentationLevelSetImageFilter&); // Not implemented
250
251 double UpperThreshold;
252 double LowerThreshold;
253 double EdgeWeight;
254 int SmoothingIterations;
255 double SmoothingTimeStep;
256 double SmoothingConductance;
257 double IsoSurfaceValue;
258 int NumberOfIterations;
259 double PropagationScaling;
260 double CurvatureScaling;
261 double AdvectionScaling;
262 double MaximumRMSError;
263 int UseNegativeFeatures;
264 int AutoGenerateSpeedAdvection;
265 int InterpolateSurfaceLocation;
266 int UseImageSpacing;
267 double RMSChange;
268 int ElapsedIterations;
269 vtkImageData* FeatureImage;
270 vtkImageData* SpeedImage;
271};
272
273#endif
274
275
276
277
virtual void SimpleExecute(vtkImageData *input, vtkImageData *output) override
static vtkvmtkThresholdSegmentationLevelSetImageFilter * New()