Medical Imaging Interaction Toolkit  2018.4.99-dcb22cd7
Medical Imaging Interaction Toolkit
mitkManualSegmentationToSurfaceFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef _MITKMANUALSEGMENTATIONTISURFACEFILTER_h__
14 #define _MITKMANUALSEGMENTATIONTISURFACEFILTER_h__
15 
18 
19 #include <vtkImageGaussianSmooth.h>
20 #include <vtkImageMedian3D.h>
21 #include <vtkImageResample.h>
22 #include <vtkImageThreshold.h>
23 
24 namespace mitk
25 {
41  {
42  public:
44 
45  typedef double vtkDouble;
46 
56  void GenerateData() override;
57  itkFactorylessNewMacro(Self);
58  itkCloneMacro(Self);
59 
63  itkSetMacro(MedianFilter3D, bool);
64 
68  itkGetConstMacro(MedianFilter3D, bool);
69 
73  itkBooleanMacro(MedianFilter3D);
74 
78  itkSetMacro(Interpolation, bool);
79 
83  itkGetConstMacro(Interpolation, bool);
84 
89  itkBooleanMacro(Interpolation);
90 
94  itkSetMacro(UseGaussianImageSmooth, bool);
95 
99  itkGetConstMacro(UseGaussianImageSmooth, bool);
100 
108  itkBooleanMacro(UseGaussianImageSmooth);
109 
114  itkSetMacro(GaussianStandardDeviation, double);
115 
120  itkGetConstMacro(GaussianStandardDeviation, double);
121 
126  void SetMedianKernelSize(int x, int y, int z);
127 
131  itkGetConstMacro(MedianKernelSizeX, int);
132 
136  itkGetConstMacro(MedianKernelSizeY, int);
137 
141  itkGetConstMacro(MedianKernelSizeZ, int);
142 
146  void SetInterpolation(vtkDouble x, vtkDouble y, vtkDouble z);
147 
148  protected:
151 
153  int m_MedianKernelSizeX, m_MedianKernelSizeY, m_MedianKernelSizeZ;
154  bool m_UseGaussianImageSmooth; // Gaussian Filter
157 
158  vtkDouble m_InterpolationX;
159  vtkDouble m_InterpolationY;
160  vtkDouble m_InterpolationZ;
161 
162  }; // namespace
163 }
164 #endif //_MITKMANUALSEGMENTATIONTISURFACEFILTER_h__
Supplies a 3D surface from pre-processed segmentation.
Superclass of all classes generating some kind of mitk::BaseData.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Converts pixel data to surface data by using a threshold The mitkImageToSurfaceFilter is used to crea...