1 #ifndef __bbSlicerLabelMapSmoothing_h_INCLUDED__
2 #define __bbSlicerLabelMapSmoothing_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 LabelMapSmoothing
26 public bbtk::AtomicBlackBox {
27 BBTK_BLACK_BOX_INTERFACE ( LabelMapSmoothing , bbtk::AtomicBlackBox ) ;
31 BBTK_DECLARE_INPUT ( labelToSmooth , int );
32 BBTK_DECLARE_INPUT ( numberOfIterations , int );
33 BBTK_DECLARE_INPUT ( maxRMSError , float );
34 BBTK_DECLARE_INPUT ( gaussianSigma , float );
35 BBTK_DECLARE_INPUT ( inputVolume , std::string );
36 BBTK_DECLARE_INPUT ( outputVolume , std::string );
40 BBTK_PROCESS ( Process ) ;
43 void execute ( std::string lib , int _argc , char * _argv[] ) ;
46 BBTK_BEGIN_DESCRIBE_BLACK_BOX ( LabelMapSmoothing , bbtk::AtomicBlackBox ) ;
47 BBTK_NAME ( "LabelMapSmoothing" ) ;
48 BBTK_AUTHOR ( "Dirk Padfield, Josh Cates, Ross Whitaker" ) ;
49 BBTK_DESCRIPTION ( "This filter smoothes a binary label map. With a label map as input, this filter runs an anti-alising algorithm followed by a Gaussian smoothing algorithm. The output is a smoothed label map." ) ;
50 BBTK_CATEGORY ( "Surface Models" ) ;
52 // GENERATED DESCRPTION
54 BBTK_INPUT(LabelMapSmoothing , labelToSmooth , "labelToSmooth" , int, "");
55 BBTK_INPUT(LabelMapSmoothing , numberOfIterations , "numberOfIterations" , int, "");
56 BBTK_INPUT(LabelMapSmoothing , maxRMSError , "maxRMSError" , float, "");
57 BBTK_INPUT(LabelMapSmoothing , gaussianSigma , "gaussianSigma" , float, "");
58 BBTK_INPUT(LabelMapSmoothing , inputVolume , "inputVolume" , std::string, "");
59 BBTK_INPUT(LabelMapSmoothing , outputVolume , "outputVolume" , std::string, "");
61 // EO GENERATED DESCRIPTION
63 BBTK_END_DESCRIBE_BLACK_BOX ( LabelMapSmoothing ) ;
66 #endif // __bbSlicerLabelMapSmoothing_h_INCLUDED__