1 #ifndef __bbSlicerExtractSkeleton_h_INCLUDED__
2 #define __bbSlicerExtractSkeleton_h_INCLUDED__
4 #include "bbSlicer_EXPORT.h"
5 #include "bbtkAtomicBlackBox.h"
14 #include <ModuleDescriptionUtilities.h>
15 #include <ModuleDescriptionParser.h>
16 #include <ModuleParameterGroup.h>
17 #include <ModuleDescription.h>
18 #include <ModuleParameter.h>
20 #include "CreationTool.h"
24 class bbSlicer_EXPORT ExtractSkeleton
26 public bbtk::AtomicBlackBox {
27 BBTK_BLACK_BOX_INTERFACE ( ExtractSkeleton , bbtk::AtomicBlackBox ) ;
31 BBTK_DECLARE_INPUT ( InputImageFileName , std::string );
32 BBTK_DECLARE_INPUT ( OutputImageFileName , std::string );
33 BBTK_DECLARE_INPUT ( SkeletonType , std::string );
34 BBTK_DECLARE_INPUT ( DontPruneBranches , bool );
35 BBTK_DECLARE_INPUT ( NumberOfPoints , int );
36 BBTK_DECLARE_INPUT ( OutputPointsFileName , std::string );
40 BBTK_PROCESS ( Process ) ;
43 void execute ( std::string lib , int _argc , char * _argv[] ) ;
46 BBTK_BEGIN_DESCRIBE_BLACK_BOX ( ExtractSkeleton , bbtk::AtomicBlackBox ) ;
47 BBTK_NAME ( "ExtractSkeleton" ) ;
48 BBTK_AUTHOR ( "Pierre Seroul, Martin Styner, Guido Gerig, and Stephen Aylward" ) ;
49 BBTK_DESCRIPTION ( "Extract the skeleton of a binary object. The skeleton can be limited to being a 1D curve or allowed to be a full 2D manifold. The branches of the skeleton can be pruned so that only the maximal center skeleton is returned." ) ;
50 BBTK_CATEGORY ( "Filtering" ) ;
52 // GENERATED DESCRPTION
54 BBTK_INPUT(ExtractSkeleton , InputImageFileName , "InputImageFileName" , std::string, "");
55 BBTK_INPUT(ExtractSkeleton , OutputImageFileName , "OutputImageFileName" , std::string, "");
56 BBTK_INPUT(ExtractSkeleton , SkeletonType , "SkeletonType" , std::string, "");
57 BBTK_INPUT(ExtractSkeleton , DontPruneBranches , "DontPruneBranches" , bool, "");
58 BBTK_INPUT(ExtractSkeleton , NumberOfPoints , "NumberOfPoints" , int, "");
59 BBTK_INPUT(ExtractSkeleton , OutputPointsFileName , "OutputPointsFileName" , std::string, "");
61 // EO GENERATED DESCRIPTION
63 BBTK_END_DESCRIBE_BLACK_BOX ( ExtractSkeleton ) ;
66 #endif // __bbSlicerExtractSkeleton_h_INCLUDED__