17 #ifndef _MITKIMAGETOSURFACEFILTER_h__
18 #define _MITKIMAGETOSURFACEFILTER_h__
24 #include <vtkPolyData.h>
27 #include <vtkImageData.h>
29 #include <vtkMarchingCubes.h>
30 #include <vtkSmoothPolyDataFilter.h>
71 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
78 virtual
void GenerateData() override;
84 virtual
void GenerateOutputInformation() override;
95 using
itk::ProcessObject::SetInput;
96 virtual
void SetInput(const
mitk::
Image *image);
106 void SetSmoothIteration(
int smoothIteration);
117 void SetSmoothRelaxation(
float smoothRelaxation);
130 itkGetConstMacro(Threshold, ScalarType);
137 itkSetMacro(Smooth,
bool);
142 itkBooleanMacro(Smooth);
147 itkGetConstMacro(Smooth,
bool);
162 itkSetMacro(Decimate, DecimationType);
171 itkSetMacro(TargetReduction,
float);
176 itkGetConstMacro(TargetReduction,
float);
181 template <class T1, class T2, class T3>
182 inline
void mitkVtkLinearTransformPoint(T1 matrix[4][4], T2
in[3], T3 out[3])
184 T3 x = matrix[0][0] * in[0] + matrix[0][1] * in[1] + matrix[0][2] * in[2] + matrix[0][3];
185 T3 y = matrix[1][0] * in[0] + matrix[1][1] * in[1] + matrix[1][2] * in[2] + matrix[1][3];
186 T3 z = matrix[2][0] * in[0] + matrix[2][1] * in[1] + matrix[2][2] * in[2] + matrix[2][3];
252 #endif //_MITKIMAGETOSURFACEFILTER_h__
Superclass of all classes generating surfaces (instances of class Surface) as output.
Class for storing surfaces (vtkPolyData).
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Image class for storing images.
static bool in(Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4)
Converts pixel data to surface data by using a threshold The mitkImageToSurfaceFilter is used to crea...
DecimationType m_Decimate