]> Creatis software - creaCLI.git/blob - ModuleCall/GenSrc/bbSlicerLinearregistration.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / ModuleCall / GenSrc / bbSlicerLinearregistration.h
1 #ifndef __bbSlicerLinearregistration_h_INCLUDED__
2 #define __bbSlicerLinearregistration_h_INCLUDED__
3
4 #include "bbSlicer_EXPORT.h"
5 #include "bbtkAtomicBlackBox.h"
6
7 #include <vector>
8 #include <cstdlib>
9 #include <dlfcn.h>
10 #include <sstream>
11 #include <fstream>
12 #include <iostream>
13
14 #include <ModuleDescriptionUtilities.h>
15 #include <ModuleDescriptionParser.h>
16 #include <ModuleParameterGroup.h>
17 #include <ModuleDescription.h>
18 #include <ModuleParameter.h>
19
20 #include "CreationTool.h"
21
22 namespace bbSlicer {
23
24     class bbSlicer_EXPORT Linearregistration
25     :
26     public bbtk::AtomicBlackBox {
27         BBTK_BLACK_BOX_INTERFACE ( Linearregistration , bbtk::AtomicBlackBox ) ;
28
29         // GENERATED ARGS        
30         
31 BBTK_DECLARE_INPUT ( FixedImageSmoothingFactor , int );
32 BBTK_DECLARE_INPUT ( MovingImageSmoothingFactor , int );
33 BBTK_DECLARE_INPUT ( HistogramBins , int );
34 BBTK_DECLARE_INPUT ( SpatialSamples , int );
35 BBTK_DECLARE_INPUT ( Iterations , std::vector<int> );
36 BBTK_DECLARE_INPUT ( LearningRate , std::vector<double> );
37 BBTK_DECLARE_INPUT ( TranslationScale , double );
38 BBTK_DECLARE_INPUT ( InitialTransform , std::string );
39 BBTK_DECLARE_INPUT ( FixedImageFileName , std::string );
40 BBTK_DECLARE_INPUT ( MovingImageFileName , std::string );
41 BBTK_DECLARE_INPUT ( OutputTransform , std::string );
42 BBTK_DECLARE_INPUT ( ResampledImageFileName , std::string );
43
44         // EO GENERATED ARGS
45
46         BBTK_PROCESS ( Process ) ;
47         void Process ( ) ;
48     private:
49         void execute ( std::string lib , int _argc , char * _argv[] ) ;
50     } ;
51
52     BBTK_BEGIN_DESCRIBE_BLACK_BOX ( Linearregistration , bbtk::AtomicBlackBox ) ;
53     BBTK_NAME ( "Linearregistration" ) ;
54     BBTK_AUTHOR ( "Daniel Blezek" ) ;
55     BBTK_DESCRIPTION ( "Registers two images together using a rigid transform and mutual information." ) ;
56     BBTK_CATEGORY ( "Legacy.Registration" ) ;
57
58     // GENERATED DESCRPTION
59     
60 BBTK_INPUT(Linearregistration , FixedImageSmoothingFactor , "FixedImageSmoothingFactor" , int, "");
61 BBTK_INPUT(Linearregistration , MovingImageSmoothingFactor , "MovingImageSmoothingFactor" , int, "");
62 BBTK_INPUT(Linearregistration , HistogramBins , "HistogramBins" , int, "");
63 BBTK_INPUT(Linearregistration , SpatialSamples , "SpatialSamples" , int, "");
64 BBTK_INPUT(Linearregistration , Iterations , "Iterations" , std::vector<int>, "");
65 BBTK_INPUT(Linearregistration , LearningRate , "LearningRate" , std::vector<double>, "");
66 BBTK_INPUT(Linearregistration , TranslationScale , "TranslationScale" , double, "");
67 BBTK_INPUT(Linearregistration , InitialTransform , "InitialTransform" , std::string, "");
68 BBTK_INPUT(Linearregistration , FixedImageFileName , "FixedImageFileName" , std::string, "");
69 BBTK_INPUT(Linearregistration , MovingImageFileName , "MovingImageFileName" , std::string, "");
70 BBTK_INPUT(Linearregistration , OutputTransform , "OutputTransform" , std::string, "");
71 BBTK_INPUT(Linearregistration , ResampledImageFileName , "ResampledImageFileName" , std::string, "");
72
73     // EO GENERATED DESCRIPTION
74
75     BBTK_END_DESCRIBE_BLACK_BOX ( Linearregistration ) ;
76 }
77
78 #endif // __bbSlicerLinearregistration_h_INCLUDED__
79
80