VMTK
Loading...
Searching...
No Matches
vtkvmtkGeodesicActiveContourLevelSetImageFilter.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
40
41#ifndef __vtkvmtkGeodesicActiveContourLevelSetImageFilter_h
42#define __vtkvmtkGeodesicActiveContourLevelSetImageFilter_h
43
44#include "vtkSimpleImageToImageFilter.h"
45#include "vtkvmtkWin32Header.h"
46
47#include "vtkImageData.h"
48
49class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkGeodesicActiveContourLevelSetImageFilter : public vtkSimpleImageToImageFilter
50{
51 public:
53 vtkTypeMacro(vtkvmtkGeodesicActiveContourLevelSetImageFilter, vtkSimpleImageToImageFilter);
54
56
60 vtkGetMacro(IsoSurfaceValue,double);
61 vtkSetMacro(IsoSurfaceValue,double);
63
65
69 vtkGetMacro(NumberOfIterations,int);
70 vtkSetMacro(NumberOfIterations,int);
72
74
78 vtkGetMacro(PropagationScaling,double);
79 vtkSetMacro(PropagationScaling,double);
81
83
87 vtkGetMacro(CurvatureScaling,double);
88 vtkSetMacro(CurvatureScaling,double);
90
92
96 vtkGetMacro(AdvectionScaling,double);
97 vtkSetMacro(AdvectionScaling,double);
99
101
105 vtkGetMacro(MaximumRMSError,double);
106 vtkSetMacro(MaximumRMSError,double);
108
110
114 vtkGetMacro(UseNegativeFeatures,int);
115 vtkSetMacro(UseNegativeFeatures,int);
116 vtkBooleanMacro(UseNegativeFeatures,int);
118
120
125 vtkGetMacro(AutoGenerateSpeedAdvection,int);
126 vtkSetMacro(AutoGenerateSpeedAdvection,int);
127 vtkBooleanMacro(AutoGenerateSpeedAdvection,int);
129
131
135 vtkGetMacro(InterpolateSurfaceLocation,int);
136 vtkSetMacro(InterpolateSurfaceLocation,int);
137 vtkBooleanMacro(InterpolateSurfaceLocation,int);
139
141
145 vtkGetMacro(UseImageSpacing,int);
146 vtkSetMacro(UseImageSpacing,int);
147 vtkBooleanMacro(UseImageSpacing,int);
149
151
156 vtkGetMacro(DerivativeSigma,double);
157 vtkSetMacro(DerivativeSigma,double);
159
161
165 vtkGetObjectMacro(FeatureImage,vtkImageData);
166 vtkSetObjectMacro(FeatureImage,vtkImageData);
168
170
174 vtkGetObjectMacro(SpeedImage,vtkImageData);
175 vtkSetObjectMacro(SpeedImage,vtkImageData);
177
182 vtkGetMacro(RMSChange,double);
183
189 vtkGetMacro(ElapsedIterations,int);
190
191protected:
194
195 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
196
197private:
199 void operator=(const vtkvmtkGeodesicActiveContourLevelSetImageFilter&); // Not implemented
200
201 double IsoSurfaceValue;
202 int NumberOfIterations;
203 double PropagationScaling;
204 double CurvatureScaling;
205 double AdvectionScaling;
206 double MaximumRMSError;
207 int UseNegativeFeatures;
208 int AutoGenerateSpeedAdvection;
209 int InterpolateSurfaceLocation;
210 int UseImageSpacing;
211 double DerivativeSigma;
212 double RMSChange;
213 int ElapsedIterations;
214 vtkImageData* FeatureImage;
215 vtkImageData* SpeedImage;
216};
217
218#endif
219
static vtkvmtkGeodesicActiveContourLevelSetImageFilter * New()
virtual void SimpleExecute(vtkImageData *input, vtkImageData *output) override