Medical Imaging Interaction Toolkit  2026.06.00
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 mitkManualSegmentationToSurfaceFilter_h
14 #define mitkManualSegmentationToSurfaceFilter_h
15 
18 
19 #include <vtkImageGaussianSmooth.h>
20 #include <vtkImageMedian3D.h>
21 #include <vtkImageResample.h>
22 #include <vtkImageThreshold.h>
23 
24 namespace mitk
25 {
40  {
41  public:
43 
44  typedef double vtkDouble;
45 
55  void GenerateData() override;
56  itkFactorylessNewMacro(Self);
57  itkCloneMacro(Self);
58 
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 
146 
147  protected:
150 
152  int m_MedianKernelSizeX, m_MedianKernelSizeY, m_MedianKernelSizeZ;
153  bool m_UseGaussianImageSmooth; // Gaussian Filter
156 
160 
161  }; // namespace
162 }
163 #endif
#define MITKSEGMENTATION_EXPORT
Converts pixel data to surface data by using a threshold.
Supplies a 3D surface from pre-processed segmentation.
void SetMedianKernelSize(int x, int y, int z)
void SetInterpolation(vtkDouble x, vtkDouble y, vtkDouble z)
mitkClassMacro(ManualSegmentationToSurfaceFilter, ImageToSurfaceFilter)
Find image slices visible on a given plane.