36 #ifndef ImageToSurface_HPP_ 37 #define ImageToSurface_HPP_ 38 #include "SmartPointers.hpp" 39 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the vtk deprecated warning 40 #include <vtkImageData.h> 41 #include <vtkPolyData.h> 42 #include <vtkSmartPointer.h> 57 bool mSegmentAboveThreshold;
61 vtkSmartPointer<vtkPolyData> mpSurface;
63 bool mUseMarchingCubes;
75 static boost::shared_ptr<ImageToSurface> Create();
77 void SetInput(vtkSmartPointer<vtkImageData> pImage);
79 void SetInputRaw(vtkImageData* pImage);
81 void SetThreshold(
double threshold,
bool segmentAboveThreshold);
83 void SetUseMarchingCubes(
bool useMarchingCubes);
87 vtkSmartPointer<vtkPolyData> GetOutput();
vtkSmartPointer< vtkImageData > mpImage