1 #ifndef __bbPackRecalageTransform3D3PointsBox_h_INCLUDED__
2 #define __bbPackRecalageTransform3D3PointsBox_h_INCLUDED__
3 #include "bbPackRecalage_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
6 #include "Transformer3D.h"
7 #include "vtkLinearTransform.h"
9 #include "PlanesOperations.h"
11 namespace bbPackRecalage
14 class bbPackRecalage_EXPORT Transform3D3PointsBox
16 public bbtk::AtomicBlackBox
18 BBTK_BLACK_BOX_INTERFACE(Transform3D3PointsBox,bbtk::AtomicBlackBox);
21 BBTK_DECLARE_INPUT(InX1,std::vector<int>);
24 BBTK_DECLARE_INPUT(InY1,std::vector<int>);
27 BBTK_DECLARE_INPUT(InZ1,std::vector<int>);
30 BBTK_DECLARE_INPUT(InX2,std::vector<int>);
33 BBTK_DECLARE_INPUT(InY2,std::vector<int>);
36 BBTK_DECLARE_INPUT(InZ2,std::vector<int>);
39 BBTK_DECLARE_INPUT(Labels1,std::vector<std::string>);
41 BBTK_DECLARE_INPUT(Labels2,std::vector<std::string>);
43 /*Resultant vtkTransform*/
44 BBTK_DECLARE_OUTPUT(Out, vtkTransform*);
46 BBTK_PROCESS(Process);
49 /*Class in charge of making the transformations*/
50 Transformer3D *transformer;
52 /*Class that does the vector operations*/
53 PlanesOperations *planes;
56 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Transform3D3PointsBox,bbtk::AtomicBlackBox);
57 BBTK_NAME("Transform3D3PointsBox");
58 BBTK_AUTHOR("jn.trillos44@uniandes.edu.co");
59 BBTK_DESCRIPTION("Box useful for creating matrixes for 3D transformations (3 points version)");
60 BBTK_CATEGORY("image");
61 BBTK_INPUT(Transform3D3PointsBox,InX1,"Points in X (first image)",std::vector<int>,"");
62 BBTK_INPUT(Transform3D3PointsBox,InY1,"Points in Y (first image)",std::vector<int>,"");
63 BBTK_INPUT(Transform3D3PointsBox,InZ1,"Points in Z (first image)",std::vector<int>,"");
64 BBTK_INPUT(Transform3D3PointsBox,InX2,"Points in X (second image)",std::vector<int>,"");
65 BBTK_INPUT(Transform3D3PointsBox,InY2,"Points in Y (second image)",std::vector<int>,"");
66 BBTK_INPUT(Transform3D3PointsBox,InZ2,"Points in Z (second image)",std::vector<int>,"");
67 BBTK_INPUT(Transform3D3PointsBox,Labels1,"Labels of the points (first image)",std::vector<std::string>,"");
68 BBTK_INPUT(Transform3D3PointsBox,Labels2,"Labels of the points (second image)",std::vector<std::string>,"");
69 BBTK_OUTPUT(Transform3D3PointsBox,Out,"Transformation Matrix",vtkTransform*,"");
70 BBTK_END_DESCRIBE_BLACK_BOX(Transform3D3PointsBox);
72 // EO namespace bbPackRecalage
74 #endif // __bbPackRecalageTransform3DBox_h_INCLUDED__