#ifndef __bbSlicerLabelMapSmoothing_h_INCLUDED__ #define __bbSlicerLabelMapSmoothing_h_INCLUDED__ #include "bbSlicer_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include #include #include #include #include #include #include #include #include #include #include #include "CreationTool.h" namespace bbSlicer { class bbSlicer_EXPORT LabelMapSmoothing : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE ( LabelMapSmoothing , bbtk::AtomicBlackBox ) ; // GENERATED ARGS BBTK_DECLARE_INPUT ( labelToSmooth , int ); BBTK_DECLARE_INPUT ( numberOfIterations , int ); BBTK_DECLARE_INPUT ( maxRMSError , float ); BBTK_DECLARE_INPUT ( gaussianSigma , float ); BBTK_DECLARE_INPUT ( inputVolume , std::string ); BBTK_DECLARE_INPUT ( outputVolume , std::string ); // EO GENERATED ARGS BBTK_PROCESS ( Process ) ; void Process ( ) ; private: void execute ( std::string lib , int _argc , char * _argv[] ) ; } ; BBTK_BEGIN_DESCRIBE_BLACK_BOX ( LabelMapSmoothing , bbtk::AtomicBlackBox ) ; BBTK_NAME ( "LabelMapSmoothing" ) ; BBTK_AUTHOR ( "Dirk Padfield, Josh Cates, Ross Whitaker" ) ; 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." ) ; BBTK_CATEGORY ( "Surface Models" ) ; // GENERATED DESCRPTION BBTK_INPUT(LabelMapSmoothing , labelToSmooth , "labelToSmooth" , int, ""); BBTK_INPUT(LabelMapSmoothing , numberOfIterations , "numberOfIterations" , int, ""); BBTK_INPUT(LabelMapSmoothing , maxRMSError , "maxRMSError" , float, ""); BBTK_INPUT(LabelMapSmoothing , gaussianSigma , "gaussianSigma" , float, ""); BBTK_INPUT(LabelMapSmoothing , inputVolume , "inputVolume" , std::string, ""); BBTK_INPUT(LabelMapSmoothing , outputVolume , "outputVolume" , std::string, ""); // EO GENERATED DESCRIPTION BBTK_END_DESCRIBE_BLACK_BOX ( LabelMapSmoothing ) ; } #endif // __bbSlicerLabelMapSmoothing_h_INCLUDED__