]> Creatis software - creaCLI.git/blob - bbtk_Slicer_PKG/src/bbSlicerThresholdImage.h
The following boxxes compilated with no errors
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerThresholdImage.h
1 #ifndef __bbSlicerThresholdImage_h_INCLUDED__
2 #define __bbSlicerThresholdImage_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 ThresholdImage
25     :
26     public bbtk::AtomicBlackBox {
27         BBTK_BLACK_BOX_INTERFACE ( ThresholdImage , bbtk::AtomicBlackBox ) ;
28
29         // GENERATED ARGS        
30         
31 BBTK_DECLARE_INPUT ( InputVolume , std::string );
32 BBTK_DECLARE_INPUT ( OutputVolume , std::string );
33 BBTK_DECLARE_INPUT ( ThresholdValue , int );
34 BBTK_DECLARE_INPUT ( Lower , int );
35 BBTK_DECLARE_INPUT ( Upper , int );
36 BBTK_DECLARE_INPUT ( OutsideValue , int );
37 BBTK_DECLARE_INPUT ( ThresholdType , std::string );
38
39         // EO GENERATED ARGS
40
41         BBTK_PROCESS ( Process ) ;
42         void Process ( ) ;
43     private:
44         void execute ( std::string lib , int _argc , char * _argv[] ) ;
45     } ;
46
47     BBTK_BEGIN_DESCRIBE_BLACK_BOX ( ThresholdImage , bbtk::AtomicBlackBox ) ;
48     BBTK_NAME ( "ThresholdImage" ) ;
49     BBTK_AUTHOR ( "Nicole Aucoin, BWH (Ron Kikinis, BWH)" ) ;
50     BBTK_DESCRIPTION ( "<p>Threshold an image.</p><p>Set image values to a user-specified outside value if they are below, above, or between simple threshold values.</p><p>ThresholdAbove: The values greater than or equal to the threshold value are set to OutsideValue.</p><p>ThresholdBelow: The values less than or equal to the threshold value are set to OutsideValue.</p><p>ThresholdOutside: The values outside the range Lower-Upper are set to OutsideValue.</p><p>Although all image types are supported on input, only signed types are produced.</p><p>" ) ;
51     BBTK_CATEGORY ( "Filtering" ) ;
52
53     // GENERATED DESCRPTION
54     
55 BBTK_INPUT(ThresholdImage , InputVolume , "InputVolume" , std::string, "");
56 BBTK_INPUT(ThresholdImage , OutputVolume , "OutputVolume" , std::string, "");
57 BBTK_INPUT(ThresholdImage , ThresholdValue , "ThresholdValue" , int, "");
58 BBTK_INPUT(ThresholdImage , Lower , "Lower" , int, "");
59 BBTK_INPUT(ThresholdImage , Upper , "Upper" , int, "");
60 BBTK_INPUT(ThresholdImage , OutsideValue , "OutsideValue" , int, "");
61 BBTK_INPUT(ThresholdImage , ThresholdType , "ThresholdType" , std::string, "");
62
63     // EO GENERATED DESCRIPTION
64
65     BBTK_END_DESCRIBE_BLACK_BOX ( ThresholdImage ) ;
66 }
67
68 #endif // __bbSlicerThresholdImage_h_INCLUDED__
69
70