Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
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) itkCloneMacro(Self)
58 
59 
62  itkSetMacro(MedianFilter3D, bool);
63 
67  itkGetConstMacro(MedianFilter3D, bool);
68 
72  itkBooleanMacro(MedianFilter3D);
73 
77  itkSetMacro(Interpolation, bool);
78 
82  itkGetConstMacro(Interpolation, bool);
83 
88  itkBooleanMacro(Interpolation);
89 
93  itkSetMacro(UseGaussianImageSmooth, bool);
94 
98  itkGetConstMacro(UseGaussianImageSmooth, bool);
99 
107  itkBooleanMacro(UseGaussianImageSmooth);
108 
113  itkSetMacro(GaussianStandardDeviation, double);
114 
119  itkGetConstMacro(GaussianStandardDeviation, double);
120 
125  void SetMedianKernelSize(int x, int y, int z);
126 
130  itkGetConstMacro(MedianKernelSizeX, int);
131 
135  itkGetConstMacro(MedianKernelSizeY, int);
136 
140  itkGetConstMacro(MedianKernelSizeZ, int);
141 
145  void SetInterpolation(vtkDouble x, vtkDouble y, vtkDouble z);
146 
147  protected:
150 
152  int m_MedianKernelSizeX, m_MedianKernelSizeY, m_MedianKernelSizeZ;
153  bool m_UseGaussianImageSmooth; // Gaussian Filter
156 
157  vtkDouble m_InterpolationX;
158  vtkDouble m_InterpolationY;
159  vtkDouble m_InterpolationZ;
160 
161  }; // namespace
162 }
163 #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...