1 #include "vtkImageData.h"
9 //----------------------------------------------------------------------------------------
11 //----------------------------------------------------------------------------------------
13 //--------------------------
14 //Constructor & Destructor
15 //--------------------------
16 Substraction(vtkImageData* imageData1, vtkImageData* imageData2, int uZLevel,int lZLevel, std::vector<double> uColor, std::vector<double> lColor, std::vector<double> mColor);
18 //--------------------------
20 //--------------------------
22 getting ready the points
24 void initialize(int dimensions[],double spacing[]);
26 Calculate the new image and save it in the attribute imageResult
27 it is used if the user had given the imageData
29 void substractImage(vtkImageData* imageData1, vtkImageData* imageData2);
32 Returns the ImageResult
34 vtkImageData* getSubstractedImage();
42 constructing image substract
44 void substract(vtkImageData* imageData1, vtkImageData* imageData2);
47 Template method of substract for different image types
49 template <class T> void substractByType(T* dataImagePointer1, T* dataImagePointer2, T* dataImageResultPointer, vtkImageData *imageData1, vtkImageData *imageData2);
53 //----------------------------------------------------------------------------------------
54 // Attributes declaration
55 //----------------------------------------------------------------------------------------
60 vtkImageData* imageResult;
62 image size dimx*dimy*dimz
66 upper zero level for doing the Substraction
70 lower zero level for doing the Substraction
74 Color for the upper threshold
78 Color for the lower threshold
82 Color for the medium threshold