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);
48 //----------------------------------------------------------------------------------------
49 // Attributes declaration
50 //----------------------------------------------------------------------------------------
55 vtkImageData* imageResult;
57 image size dimx*dimy*dimz
61 upper zero level for doing the Substraction
65 lower zero level for doing the Substraction
69 Color for the upper threshold
73 Color for the lower threshold
77 Color for the medium threshold