]> Creatis software - creaRigidRegistration.git/blob - lib/Convolution.h
\ No newline at end of file
[creaRigidRegistration.git] / lib / Convolution.h
1 #include "vtkImageData.h"
2 #include "vtkImageConvolve.h"
3 #include "vtkImageCast.h"
4 #include <iostream>
5 #include <fstream>
6 #include <string>
7 #include <vector>
8
9 class Convolution
10 {
11         public: 
12                 Convolution();
13                 ~Convolution();
14
15                 //Gets the result
16                 vtkImageData* getImage();
17                 
18                 void setImage(vtkImageData *image);
19                 void setFactor(double factor);
20                 void setOn(bool on);
21
22                 void Run();
23                 
24         // --- Atributes --- //
25         private: 
26
27                 //Original Image
28                 vtkImageData *_image;
29
30                 //Convolution factor
31                 double _factor;
32
33                 //Convolution Filter
34                 vtkImageConvolve *_convolve;
35
36                 //Casting Filter
37                 vtkImageCast *_cast;
38
39                 bool _on;
40 };
41