]> Creatis software - creaCLI.git/blob - ModuleCall/GenSrc/bbSlicerVotingBinaryHoleFilling.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / ModuleCall / GenSrc / bbSlicerVotingBinaryHoleFilling.h
1 #ifndef __bbSlicerVotingBinaryHoleFilling_h_INCLUDED__
2 #define __bbSlicerVotingBinaryHoleFilling_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 VotingBinaryHoleFilling
25     :
26     public bbtk::AtomicBlackBox {
27         BBTK_BLACK_BOX_INTERFACE ( VotingBinaryHoleFilling , bbtk::AtomicBlackBox ) ;
28
29         // GENERATED ARGS        
30         
31 BBTK_DECLARE_INPUT ( radius , std::vector<int> );
32 BBTK_DECLARE_INPUT ( majorityThreshold , int );
33 BBTK_DECLARE_INPUT ( background , int );
34 BBTK_DECLARE_INPUT ( foreground , int );
35 BBTK_DECLARE_INPUT ( inputVolume , std::string );
36 BBTK_DECLARE_INPUT ( outputVolume , std::string );
37
38         // EO GENERATED ARGS
39
40         BBTK_PROCESS ( Process ) ;
41         void Process ( ) ;
42     private:
43         void execute ( std::string lib , int _argc , char * _argv[] ) ;
44     } ;
45
46     BBTK_BEGIN_DESCRIBE_BLACK_BOX ( VotingBinaryHoleFilling , bbtk::AtomicBlackBox ) ;
47     BBTK_NAME ( "VotingBinaryHoleFilling" ) ;
48     BBTK_AUTHOR ( "Bill Lorensen" ) ;
49     BBTK_DESCRIPTION ( "Applies a voting operation in order to fill-in cavities. This can be used for smoothing contours and for filling holes in binary images. This technique is used frequently when segmenting complete organs that may have ducts or vasculature that may not have been included in the initial segmentation, e.g. lungs, kidneys, liver." ) ;
50     BBTK_CATEGORY ( "Filtering" ) ;
51
52     // GENERATED DESCRPTION
53     
54 BBTK_INPUT(VotingBinaryHoleFilling , radius , "radius" , std::vector<int>, "");
55 BBTK_INPUT(VotingBinaryHoleFilling , majorityThreshold , "majorityThreshold" , int, "");
56 BBTK_INPUT(VotingBinaryHoleFilling , background , "background" , int, "");
57 BBTK_INPUT(VotingBinaryHoleFilling , foreground , "foreground" , int, "");
58 BBTK_INPUT(VotingBinaryHoleFilling , inputVolume , "inputVolume" , std::string, "");
59 BBTK_INPUT(VotingBinaryHoleFilling , outputVolume , "outputVolume" , std::string, "");
60
61     // EO GENERATED DESCRIPTION
62
63     BBTK_END_DESCRIBE_BLACK_BOX ( VotingBinaryHoleFilling ) ;
64 }
65
66 #endif // __bbSlicerVotingBinaryHoleFilling_h_INCLUDED__
67
68