]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/src/bbPackRecalageGridOnImageGenerator.h
Black box that generates a grid over an image in order to visualize the deformation...
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageGridOnImageGenerator.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbPackRecalageGridOnImageGenerator_h_INCLUDED__
5 #define __bbPackRecalageGridOnImageGenerator_h_INCLUDED__
6 #include "bbPackRecalage_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 //VTK
11 #include "vtkImageData.h"
12
13 //OWN
14 #include "MyGridOnImageGenerator.h"
15
16 namespace bbPackRecalage
17 {
18
19 class bbPackRecalage_EXPORT GridOnImageGenerator
20  : 
21    public bbtk::AtomicBlackBox
22 {
23   BBTK_BLACK_BOX_INTERFACE(GridOnImageGenerator,bbtk::AtomicBlackBox);
24 //===== 
25 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
26 //===== 
27   BBTK_DECLARE_INPUT(In,vtkImageData*);
28   BBTK_DECLARE_INPUT(GridSpcX,double);
29   BBTK_DECLARE_INPUT(GridSpcY,double);
30   BBTK_DECLARE_INPUT(GridSpcZ,double);
31
32   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
33
34   BBTK_PROCESS(Process);
35   void Process();
36 //===== 
37 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
38 //=====
39
40 private:
41
42   //Grid on image generator attribute
43   MyGridOnImageGenerator* gridOnImageGenerator;
44
45 };
46
47 BBTK_BEGIN_DESCRIBE_BLACK_BOX(GridOnImageGenerator,bbtk::AtomicBlackBox);
48 BBTK_NAME("GridOnImageGenerator");
49 BBTK_AUTHOR("Alfredo Morales Pinzon, morales@creatis.insa-lyon.fr, write me if you have questions :) N'hésitez pas");
50 BBTK_DESCRIPTION("Box that creates an grid over an image. This is usually used to visualized the deformation that takes place over an image after a transformation, specially when non-rigid registration is applied. In order to create the grid the user must specify the spacing in each direction using the image coordinates, for example in milimeters. The final image contrast is based on the maximum and minimum values over the entire image.");
51 BBTK_CATEGORY("Registration");
52
53 BBTK_INPUT(GridOnImageGenerator,In,"Input image",vtkImageData*,"");
54 BBTK_INPUT(GridOnImageGenerator,GridSpcX,"Grid spacing in X",double,"");
55 BBTK_INPUT(GridOnImageGenerator,GridSpcY,"Grid spacing in Y",double,"");
56 BBTK_INPUT(GridOnImageGenerator,GridSpcZ,"Grid spacing in Z",double,"");
57
58 BBTK_OUTPUT(GridOnImageGenerator,Out,"Output image",vtkImageData*,"");
59 BBTK_END_DESCRIBE_BLACK_BOX(GridOnImageGenerator);
60 //===== 
61 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
62 //===== 
63 }
64 // EO namespace bbPackRecalage
65
66 #endif // __bbPackRecalageGridOnImageGenerator_h_INCLUDED__
67