13 #ifndef _MITKIMAGETOSURFACEFILTER_h__ 14 #define _MITKIMAGETOSURFACEFILTER_h__ 20 #include <vtkPolyData.h> 23 #include <vtkImageData.h> 25 #include <vtkMarchingCubes.h> 26 #include <vtkSmoothPolyDataFilter.h> 67 itkFactorylessNewMacro(
Self);
75 void GenerateData()
override;
81 void GenerateOutputInformation()
override;
92 using itk::ProcessObject::SetInput;
103 void SetSmoothIteration(
int smoothIteration);
114 void SetSmoothRelaxation(
float smoothRelaxation);
134 itkSetMacro(Smooth,
bool);
139 itkBooleanMacro(Smooth);
144 itkGetConstMacro(Smooth,
bool);
168 itkSetMacro(TargetReduction,
float);
173 itkGetConstMacro(TargetReduction,
float);
178 template <
class T1,
class T2,
class T3>
181 T3 x = matrix[0][0] * in[0] + matrix[0][1] * in[1] + matrix[0][2] * in[2] + matrix[0][3];
182 T3 y = matrix[1][0] * in[0] + matrix[1][1] * in[1] + matrix[1][2] * in[2] + matrix[1][3];
183 T3 z = matrix[2][0] * in[0] + matrix[2][1] * in[1] + matrix[2][2] * in[2] + matrix[2][3];
249 #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.
void mitkVtkLinearTransformPoint(T1 matrix[4][4], T2 in[3], T3 out[3])
#define mitkClassMacro(className, SuperClassName)
Image class for storing images.
mitk::Image::Pointer image
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