Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _MITKMANUALSEGMENTATIONTISURFACEFILTER_h__
18 #define _MITKMANUALSEGMENTATIONTISURFACEFILTER_h__
19 
22 
23 #include <vtkImageGaussianSmooth.h>
24 #include <vtkImageMedian3D.h>
25 #include <vtkImageResample.h>
26 #include <vtkImageThreshold.h>
27 
28 namespace mitk
29 {
45  {
46  public:
48 
49  typedef double vtkDouble;
50 
60  virtual void GenerateData() override;
61  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
62 
66  itkSetMacro(MedianFilter3D, bool);
67 
71  itkGetConstMacro(MedianFilter3D, bool);
72 
76  itkBooleanMacro(MedianFilter3D);
77 
81  itkSetMacro(Interpolation, bool);
82 
86  itkGetConstMacro(Interpolation, bool);
87 
92  itkBooleanMacro(Interpolation);
93 
97  itkSetMacro(UseGaussianImageSmooth, bool);
98 
102  itkGetConstMacro(UseGaussianImageSmooth, bool);
103 
111  itkBooleanMacro(UseGaussianImageSmooth);
112 
117  itkSetMacro(GaussianStandardDeviation, double);
118 
123  itkGetConstMacro(GaussianStandardDeviation, double);
124 
129  void SetMedianKernelSize(int x, int y, int z);
130 
134  itkGetConstMacro(MedianKernelSizeX, int);
135 
139  itkGetConstMacro(MedianKernelSizeY, int);
140 
144  itkGetConstMacro(MedianKernelSizeZ, int);
145 
149  void SetInterpolation(vtkDouble x, vtkDouble y, vtkDouble z);
150 
151  protected:
153  virtual ~ManualSegmentationToSurfaceFilter();
154 
155  bool m_MedianFilter3D;
156  int m_MedianKernelSizeX, m_MedianKernelSizeY, m_MedianKernelSizeZ;
157  bool m_UseGaussianImageSmooth; // Gaussian Filter
158  double m_GaussianStandardDeviation;
159  bool m_Interpolation;
160 
161  vtkDouble m_InterpolationX;
162  vtkDouble m_InterpolationY;
163  vtkDouble m_InterpolationZ;
164 
165  }; // namespace
166 }
167 #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:44
Converts pixel data to surface data by using a threshold The mitkImageToSurfaceFilter is used to crea...