]> Creatis software - creaRigidRegistration.git/blob - lib/Convolution.h
b9e752c0119d55c48232537297da3fcc860a1345
[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
21                 void Run();
22                 
23         // --- Atributes --- //
24         private: 
25
26                 //Original Image
27                 vtkImageData *_image;
28
29                 //Convolution factor
30                 double _factor;
31
32                 //Convolution Filter
33                 vtkImageConvolve *_convolve;
34
35                 //Casting Filter
36                 vtkImageCast *_cast;
37 };