]> Creatis software - creaCLI.git/blob - ModuleCall/GenSrc/bbSlicerForegroundmaskingBRAINS.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / ModuleCall / GenSrc / bbSlicerForegroundmaskingBRAINS.h
1 #ifndef __bbSlicerForegroundmaskingBRAINS_h_INCLUDED__
2 #define __bbSlicerForegroundmaskingBRAINS_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 ForegroundmaskingBRAINS
25     :
26     public bbtk::AtomicBlackBox {
27         BBTK_BLACK_BOX_INTERFACE ( ForegroundmaskingBRAINS , bbtk::AtomicBlackBox ) ;
28
29         // GENERATED ARGS        
30         
31 BBTK_DECLARE_INPUT ( inputVolume , std::string );
32 BBTK_DECLARE_INPUT ( outputROIMaskVolume , std::string );
33 BBTK_DECLARE_INPUT ( outputClippedVolumeROI , std::string );
34 BBTK_DECLARE_INPUT ( otsuPercentileThreshold , double );
35 BBTK_DECLARE_INPUT ( thresholdCorrectionFactor , double );
36 BBTK_DECLARE_INPUT ( closingSize , double );
37 BBTK_DECLARE_INPUT ( ROIAutoDilateSize , double );
38 BBTK_DECLARE_INPUT ( outputVolumePixelType , std::string );
39 BBTK_DECLARE_INPUT ( numberOfThreads , int );
40
41         // EO GENERATED ARGS
42
43         BBTK_PROCESS ( Process ) ;
44         void Process ( ) ;
45     private:
46         void execute ( std::string lib , int _argc , char * _argv[] ) ;
47     } ;
48
49     BBTK_BEGIN_DESCRIBE_BLACK_BOX ( ForegroundmaskingBRAINS , bbtk::AtomicBlackBox ) ;
50     BBTK_NAME ( "ForegroundmaskingBRAINS" ) ;
51     BBTK_AUTHOR ( "Hans J. Johnson, hans-johnson -at- uiowa.edu, http://wwww.psychiatry.uiowa.edu" ) ;
52     BBTK_DESCRIPTION ( "This tool uses a combination of otsu thresholding and a closing operations to identify the most prominant foreground region in an image." ) ;
53     BBTK_CATEGORY ( "Segmentation.Specialized" ) ;
54
55     // GENERATED DESCRPTION
56     
57 BBTK_INPUT(ForegroundmaskingBRAINS , inputVolume , "inputVolume" , std::string, "");
58 BBTK_INPUT(ForegroundmaskingBRAINS , outputROIMaskVolume , "outputROIMaskVolume" , std::string, "");
59 BBTK_INPUT(ForegroundmaskingBRAINS , outputClippedVolumeROI , "outputClippedVolumeROI" , std::string, "");
60 BBTK_INPUT(ForegroundmaskingBRAINS , otsuPercentileThreshold , "otsuPercentileThreshold" , double, "");
61 BBTK_INPUT(ForegroundmaskingBRAINS , thresholdCorrectionFactor , "thresholdCorrectionFactor" , double, "");
62 BBTK_INPUT(ForegroundmaskingBRAINS , closingSize , "closingSize" , double, "");
63 BBTK_INPUT(ForegroundmaskingBRAINS , ROIAutoDilateSize , "ROIAutoDilateSize" , double, "");
64 BBTK_INPUT(ForegroundmaskingBRAINS , outputVolumePixelType , "outputVolumePixelType" , std::string, "");
65 BBTK_INPUT(ForegroundmaskingBRAINS , numberOfThreads , "numberOfThreads" , int, "");
66
67     // EO GENERATED DESCRIPTION
68
69     BBTK_END_DESCRIBE_BLACK_BOX ( ForegroundmaskingBRAINS ) ;
70 }
71
72 #endif // __bbSlicerForegroundmaskingBRAINS_h_INCLUDED__
73
74