]> Creatis software - creaCLI.git/blob - ModuleCall/GenSrc/bbSlicerResampleImageBRAINS.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / ModuleCall / GenSrc / bbSlicerResampleImageBRAINS.h
1 #ifndef __bbSlicerResampleImageBRAINS_h_INCLUDED__
2 #define __bbSlicerResampleImageBRAINS_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 ResampleImageBRAINS
25     :
26     public bbtk::AtomicBlackBox {
27         BBTK_BLACK_BOX_INTERFACE ( ResampleImageBRAINS , bbtk::AtomicBlackBox ) ;
28
29         // GENERATED ARGS        
30         
31 BBTK_DECLARE_INPUT ( inputVolume , std::string );
32 BBTK_DECLARE_INPUT ( referenceVolume , std::string );
33 BBTK_DECLARE_INPUT ( outputVolume , std::string );
34 BBTK_DECLARE_INPUT ( pixelType , std::string );
35 BBTK_DECLARE_INPUT ( deformationVolume , std::string );
36 BBTK_DECLARE_INPUT ( warpTransform , std::string );
37 BBTK_DECLARE_INPUT ( interpolationMode , std::string );
38 BBTK_DECLARE_INPUT ( inverseTransform , bool );
39 BBTK_DECLARE_INPUT ( defaultValue , float );
40 BBTK_DECLARE_INPUT ( gridSpacing , std::vector<int> );
41 BBTK_DECLARE_INPUT ( numberOfThreads , int );
42
43         // EO GENERATED ARGS
44
45         BBTK_PROCESS ( Process ) ;
46         void Process ( ) ;
47     private:
48         void execute ( std::string lib , int _argc , char * _argv[] ) ;
49     } ;
50
51     BBTK_BEGIN_DESCRIBE_BLACK_BOX ( ResampleImageBRAINS , bbtk::AtomicBlackBox ) ;
52     BBTK_NAME ( "ResampleImageBRAINS" ) ;
53     BBTK_AUTHOR ( "This tool was developed by Vincent Magnotta, Greg Harris, and Hans Johnson." ) ;
54     BBTK_DESCRIPTION ( "This program resamples an image image using a deformation field or a transform BSpline, Affine, Rigid, etc.." ) ;
55     BBTK_CATEGORY ( "Registration" ) ;
56
57     // GENERATED DESCRPTION
58     
59 BBTK_INPUT(ResampleImageBRAINS , inputVolume , "inputVolume" , std::string, "");
60 BBTK_INPUT(ResampleImageBRAINS , referenceVolume , "referenceVolume" , std::string, "");
61 BBTK_INPUT(ResampleImageBRAINS , outputVolume , "outputVolume" , std::string, "");
62 BBTK_INPUT(ResampleImageBRAINS , pixelType , "pixelType" , std::string, "");
63 BBTK_INPUT(ResampleImageBRAINS , deformationVolume , "deformationVolume" , std::string, "");
64 BBTK_INPUT(ResampleImageBRAINS , warpTransform , "warpTransform" , std::string, "");
65 BBTK_INPUT(ResampleImageBRAINS , interpolationMode , "interpolationMode" , std::string, "");
66 BBTK_INPUT(ResampleImageBRAINS , inverseTransform , "inverseTransform" , bool, "");
67 BBTK_INPUT(ResampleImageBRAINS , defaultValue , "defaultValue" , float, "");
68 BBTK_INPUT(ResampleImageBRAINS , gridSpacing , "gridSpacing" , std::vector<int>, "");
69 BBTK_INPUT(ResampleImageBRAINS , numberOfThreads , "numberOfThreads" , int, "");
70
71     // EO GENERATED DESCRIPTION
72
73     BBTK_END_DESCRIBE_BLACK_BOX ( ResampleImageBRAINS ) ;
74 }
75
76 #endif // __bbSlicerResampleImageBRAINS_h_INCLUDED__
77
78