1 #ifndef __bbSlicerCastImage_h_INCLUDED__
2 #define __bbSlicerCastImage_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 CastImage
26 public bbtk::AtomicBlackBox {
27 BBTK_BLACK_BOX_INTERFACE ( CastImage , bbtk::AtomicBlackBox ) ;
31 BBTK_DECLARE_INPUT ( InputVolume , std::string );
32 BBTK_DECLARE_INPUT ( OutputVolume , std::string );
33 BBTK_DECLARE_INPUT ( Type , std::string );
37 BBTK_PROCESS ( Process ) ;
40 void execute ( std::string lib , int _argc , char * _argv[] ) ;
43 BBTK_BEGIN_DESCRIBE_BLACK_BOX ( CastImage , bbtk::AtomicBlackBox ) ;
44 BBTK_NAME ( "CastImage" ) ;
45 BBTK_AUTHOR ( "Nicole Aucoin, BWH Ron Kikinis, BWH" ) ;
46 BBTK_DESCRIPTION ( "Cast a volume to a given data type.Use at your own risk when casting an input volume into a lower precision type!Allows casting to the same type as the input volume." ) ;
47 BBTK_CATEGORY ( "Filtering.Arithmetic" ) ;
49 // GENERATED DESCRPTION
51 BBTK_INPUT(CastImage , InputVolume , "InputVolume" , std::string, "");
52 BBTK_INPUT(CastImage , OutputVolume , "OutputVolume" , std::string, "");
53 BBTK_INPUT(CastImage , Type , "Type" , std::string, "");
55 // EO GENERATED DESCRIPTION
57 BBTK_END_DESCRIBE_BLACK_BOX ( CastImage ) ;
60 #endif // __bbSlicerCastImage_h_INCLUDED__