]> Creatis software - creaCLI.git/blob - bbtk_Slicer_PKG/src/bbSlicerSimpleregiongrowing.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerSimpleregiongrowing.h
1 #ifndef __bbSlicerSimpleregiongrowing_h_INCLUDED__
2 #define __bbSlicerSimpleregiongrowing_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 Simpleregiongrowing
25     :
26     public bbtk::AtomicBlackBox {
27         BBTK_BLACK_BOX_INTERFACE ( Simpleregiongrowing , bbtk::AtomicBlackBox ) ;
28
29         // GENERATED ARGS        
30         
31 BBTK_DECLARE_INPUT ( smoothingIterations , int );
32 BBTK_DECLARE_INPUT ( timestep , double );
33 BBTK_DECLARE_INPUT ( iterations , int );
34 BBTK_DECLARE_INPUT ( multiplier , double );
35 BBTK_DECLARE_INPUT ( neighborhood , int );
36 BBTK_DECLARE_INPUT ( labelvalue , int );
37 BBTK_DECLARE_INPUT ( seed , std::vector<std::vector<float> > );
38 BBTK_DECLARE_INPUT ( inputVolume , std::string );
39 BBTK_DECLARE_INPUT ( outputVolume , std::string );
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 ( Simpleregiongrowing , bbtk::AtomicBlackBox ) ;
50     BBTK_NAME ( "Simpleregiongrowing" ) ;
51     BBTK_AUTHOR ( "Jim Miller" ) ;
52     BBTK_DESCRIPTION ( "A simple region growing segmentation algorithm based on intensity statistics. To create a list of fiducials Seeds for this algorithm, click on the tool bar icon of an arrow pointing to a starburst fiducial to enter the 'place a new object mode' and then use the fiducials module. This module uses the Slicer Command Line Interface CLI and the ITK filters CurvatureFlowImageFilter and ConfidenceConnectedImageFilter." ) ;
53     BBTK_CATEGORY ( "Segmentation" ) ;
54
55     // GENERATED DESCRPTION
56     
57 BBTK_INPUT(Simpleregiongrowing , smoothingIterations , "smoothingIterations" , int, "");
58 BBTK_INPUT(Simpleregiongrowing , timestep , "timestep" , double, "");
59 BBTK_INPUT(Simpleregiongrowing , iterations , "iterations" , int, "");
60 BBTK_INPUT(Simpleregiongrowing , multiplier , "multiplier" , double, "");
61 BBTK_INPUT(Simpleregiongrowing , neighborhood , "neighborhood" , int, "");
62 BBTK_INPUT(Simpleregiongrowing , labelvalue , "labelvalue" , int, "");
63 BBTK_INPUT(Simpleregiongrowing , seed , "seed" , std::vector<std::vector<float> >, "");
64 BBTK_INPUT(Simpleregiongrowing , inputVolume , "inputVolume" , std::string, "");
65 BBTK_INPUT(Simpleregiongrowing , outputVolume , "outputVolume" , std::string, "");
66
67     // EO GENERATED DESCRIPTION
68
69     BBTK_END_DESCRIBE_BLACK_BOX ( Simpleregiongrowing ) ;
70 }
71
72 #endif // __bbSlicerSimpleregiongrowing_h_INCLUDED__
73
74