]> Creatis software - creaRigidRegistration.git/blob - lib/CheckBoard.h
*** empty log message ***
[creaRigidRegistration.git] / lib / CheckBoard.h
1 #include "vtkImageData.h"
2 #include "vtkImageResample.h"
3 #include <iostream>
4 #include <fstream>
5 #include <string>
6 #include <vector>
7
8 class CheckBoard
9 {
10         public: 
11                 CheckBoard();
12                 ~CheckBoard();
13
14                 //Initialize newImage points
15                 void initialize(int dimensions[], double spacing[]);
16
17                 //Calculate the new image and save it in the attribute image
18                 void calculateImage();
19                 
20                 //Gets the result
21                 vtkImageData* getFilteredImage();
22                 
23                 //Gets the image Size
24                 int getImageSize();
25
26                 //Constructs new image from image 2
27                 void createImage(vtkImageData *img1, vtkImageData *img2, int sizeX, int sizeY);
28
29                 void setInputImage1(vtkImageData *_image);
30
31                 void setInputImage2(vtkImageData *_image);
32
33                 void setCols(int cols);
34
35                 void setRows(int rows);
36
37         // --- Atributes --- //
38         private: 
39
40                 bool processed;
41
42                 int type;
43
44                 vtkImageData *image1;
45
46                 vtkImageData *image2;
47
48                 //Resulting image
49                 vtkImageData *newImage;
50
51                 //Total number of divisions for the X axis (colums)
52                 int squaresX;
53
54                 //Total number of divisions for the Y axis (rows)
55                 int squaresY; 
56
57                 // Image 1 extent (iniX, finX, iniY, finY, iniZ, finZ)
58                 int extImg1[6];
59                 // Dimensionality image 1
60                 int dimImg1[3];
61                 // Image 1 spacing
62                 double spcImg1[3];
63
64                 // Image 2 extent (iniX, finX, iniY, finY, iniZ, finZ)
65                 int extImg2[6];
66                 // Dimensionality image 2
67                 int dimImg2[3];
68                 // Image 2 spacing
69                 double spcImg2[3];
70
71 };
72
73 //#endif
74
75