VMTK
Loading...
Searching...
No Matches
vtkvmtkGeodesicActiveContourLevelSet2DImageFilter.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
34
35#ifndef __vtkvmtkGeodesicActiveContourLevelSet2DImageFilter_h
36#define __vtkvmtkGeodesicActiveContourLevelSet2DImageFilter_h
37
38#include "vtkSimpleImageToImageFilter.h"
39#include "vtkvmtkWin32Header.h"
40
41#include "vtkImageData.h"
42
43class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkGeodesicActiveContourLevelSet2DImageFilter : public vtkSimpleImageToImageFilter
44{
45 public:
47 vtkTypeMacro(vtkvmtkGeodesicActiveContourLevelSet2DImageFilter, vtkSimpleImageToImageFilter);
48
50
54 vtkGetMacro(IsoSurfaceValue,double);
55 vtkSetMacro(IsoSurfaceValue,double);
57
59
63 vtkGetMacro(NumberOfIterations,int);
64 vtkSetMacro(NumberOfIterations,int);
66
68
72 vtkGetMacro(PropagationScaling,double);
73 vtkSetMacro(PropagationScaling,double);
75
77
81 vtkGetMacro(CurvatureScaling,double);
82 vtkSetMacro(CurvatureScaling,double);
84
86
90 vtkGetMacro(AdvectionScaling,double);
91 vtkSetMacro(AdvectionScaling,double);
93
95
99 vtkGetMacro(MaximumRMSError,double);
100 vtkSetMacro(MaximumRMSError,double);
102
104
108 vtkGetMacro(UseNegativeFeatures,int);
109 vtkSetMacro(UseNegativeFeatures,int);
110 vtkBooleanMacro(UseNegativeFeatures,int);
112
114
119 vtkGetMacro(AutoGenerateSpeedAdvection,int);
120 vtkSetMacro(AutoGenerateSpeedAdvection,int);
121 vtkBooleanMacro(AutoGenerateSpeedAdvection,int);
123
125
129 vtkGetMacro(InterpolateSurfaceLocation,int);
130 vtkSetMacro(InterpolateSurfaceLocation,int);
131 vtkBooleanMacro(InterpolateSurfaceLocation,int);
133
135
139 vtkGetMacro(UseImageSpacing,int);
140 vtkSetMacro(UseImageSpacing,int);
141 vtkBooleanMacro(UseImageSpacing,int);
143
145
150 vtkGetMacro(DerivativeSigma,double);
151 vtkSetMacro(DerivativeSigma,double);
153
155
159 vtkGetObjectMacro(FeatureImage,vtkImageData);
160 vtkSetObjectMacro(FeatureImage,vtkImageData);
162
164
168 vtkGetObjectMacro(SpeedImage,vtkImageData);
169 vtkSetObjectMacro(SpeedImage,vtkImageData);
171
176 vtkGetMacro(RMSChange,double);
177
183 vtkGetMacro(ElapsedIterations,int);
184
185protected:
188
189 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
190
191private:
193 void operator=(const vtkvmtkGeodesicActiveContourLevelSet2DImageFilter&); // Not implemented
194
195 double IsoSurfaceValue;
196 int NumberOfIterations;
197 double PropagationScaling;
198 double CurvatureScaling;
199 double AdvectionScaling;
200 double MaximumRMSError;
201 int UseNegativeFeatures;
202 int AutoGenerateSpeedAdvection;
203 int InterpolateSurfaceLocation;
204 int UseImageSpacing;
205 double DerivativeSigma;
206 double RMSChange;
207 int ElapsedIterations;
208 vtkImageData* FeatureImage;
209 vtkImageData* SpeedImage;
210};
211
212#endif
213
214
215
216
virtual void SimpleExecute(vtkImageData *input, vtkImageData *output) override
static vtkvmtkGeodesicActiveContourLevelSet2DImageFilter * New()