1 #include "vtkImageData.h"
2 #include "vtkImageResample.h"
14 //Initialize newImage points
15 void initialize(int dimensions[], double spacing[]);
17 //Calculate the new image and save it in the attribute image
18 void calculateImage();
21 vtkImageData* getFilteredImage();
26 //Constructs new image from image 2
27 void createImage(vtkImageData *img1, vtkImageData *img2, int sizeX, int sizeY);
29 void setInputImage1(vtkImageData *_image);
31 void setInputImage2(vtkImageData *_image);
33 void setCols(int cols);
35 void setRows(int rows);
36 template <class T> void createImageByType(T* dataImagePointer1, T* dataImagePointer2, T* dataImageResultPointer, vtkImageData *img1, vtkImageData *img2, int sizeX, int sizeY);
38 // --- Atributes --- //
50 vtkImageData *newImage;
53 vtkImageResample *resample;
55 //Rsulting image from the resampler
58 //Total number of divisions for the X axis (colums)
61 //Total number of divisions for the Y axis (rows)
64 // Image 1 extent (iniX, finX, iniY, finY, iniZ, finZ)
66 // Dimensionality image 1
71 // Image 2 extent (iniX, finX, iniY, finY, iniZ, finZ)
73 // Dimensionality image 2