]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/src/bbPackRecalageImageConvolution.h
d95c8da0daf0af49ffc2602c45a1e6f48000f324
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageImageConvolution.h
1 #ifndef __bbPackRecalageImageConvolution_h_INCLUDED__
2 #define __bbPackRecalageImageConvolution_h_INCLUDED__
3 #include "bbPackRecalage_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
5 #include "iostream"
6
7 #include "vtkImageData.h"
8 #include "Convolution.h"
9
10 namespace bbPackRecalage
11 {
12
13 class bbPackRecalage_EXPORT ImageConvolution
14  : 
15    public bbtk::AtomicBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(ImageConvolution,bbtk::AtomicBlackBox);
18   BBTK_DECLARE_INPUT(In,vtkImageData*);
19   BBTK_DECLARE_INPUT(Factor,double);
20   BBTK_DECLARE_INPUT(On,bool);
21   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
22   BBTK_PROCESS(Process);
23   void Process();
24
25   private:
26           Convolution* convolution;
27 };
28
29 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageConvolution,bbtk::AtomicBlackBox);
30 BBTK_NAME("ImageConvolution");
31 BBTK_AUTHOR("jn.trillos44@uniandes.edu.co");
32 BBTK_DESCRIPTION("Processes an image through different convolution matrix (Edge detect)");
33 BBTK_CATEGORY("filter");
34 BBTK_INPUT(ImageConvolution,In,"Image to be filetered",vtkImageData*,"");
35 BBTK_INPUT(ImageConvolution,Factor,"Factor by how the edges will be represented",double,"");
36 BBTK_INPUT(ImageConvolution,On,"Boolean that represents if the filter is turned on. True = On.",bool,"");
37 BBTK_OUTPUT(ImageConvolution,Out,"Filtered Image",vtkImageData*,"");
38 BBTK_END_DESCRIBE_BLACK_BOX(ImageConvolution);
39 }
40 // EO namespace bbPackRecalage
41
42 #endif // __bbPackRecalageImageConvolution_h_INCLUDED__
43