1 #include "vtkImageData.h"
2 #include "vtkImageResample.h"
14 //Calculate the new image and save it in the attribute image
15 void calculateImage();
18 vtkImageData* getImage();
20 void setImage1(vtkImageData *image);
22 void setImage2(vtkImageData *image);
24 void setPercent(int percent);
26 //Initialize newImage points
27 void initialize(int dimensions[], double spacing[]);
29 //Constructs a new transparent image
30 void createImage(vtkImageData *img1, vtkImageData *img2, int sizeX, int sizeY);
32 //Template for constructing the image by image type
33 template <class T> void createImageByType(T* dataImagePointer1, T* dataImagePointer2, T* dataImageResultPointer, vtkImageData *img1, vtkImageData *img2, int sizeX, int sizeY);
35 // --- Atributes --- //
42 vtkImageData *_image1;
44 vtkImageData *_image2;
47 vtkImageData *_newImage;
49 //Percent of transparency for the second image
52 // Image 1 extent (iniX, finX, iniY, finY, iniZ, finZ)
54 // Dimensionality image 1
59 // Image 2 extent (iniX, finX, iniY, finY, iniZ, finZ)
61 // Dimensionality image 2