1 #ifndef __bbSlicerMaskImage_h_INCLUDED__
2 #define __bbSlicerMaskImage_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 MaskImage
26 public bbtk::AtomicBlackBox {
27 BBTK_BLACK_BOX_INTERFACE ( MaskImage , bbtk::AtomicBlackBox ) ;
31 BBTK_DECLARE_INPUT ( InputVolume , std::string );
32 BBTK_DECLARE_INPUT ( MaskVolume , std::string );
33 BBTK_DECLARE_INPUT ( OutputVolume , std::string );
34 BBTK_DECLARE_INPUT ( Label , int );
35 BBTK_DECLARE_INPUT ( Replace , int );
39 BBTK_PROCESS ( Process ) ;
42 void execute ( std::string lib , int _argc , char * _argv[] ) ;
45 BBTK_BEGIN_DESCRIBE_BLACK_BOX ( MaskImage , bbtk::AtomicBlackBox ) ;
46 BBTK_NAME ( "MaskImage" ) ;
47 BBTK_AUTHOR ( "Nicole Aucoin, BWH Ron Kikinis, BWH" ) ;
48 BBTK_DESCRIPTION ( "Masks two images. The output image is set to 0 everywhere except where the chosen label from the mask volume is present, at which point it will retain it's original values. Although all image types are supported on input, only signed types are produced. The two images do not have to have the same dimensions." ) ;
49 BBTK_CATEGORY ( "Filtering.Arithmetic" ) ;
51 // GENERATED DESCRPTION
53 BBTK_INPUT(MaskImage , InputVolume , "InputVolume" , std::string, "");
54 BBTK_INPUT(MaskImage , MaskVolume , "MaskVolume" , std::string, "");
55 BBTK_INPUT(MaskImage , OutputVolume , "OutputVolume" , std::string, "");
56 BBTK_INPUT(MaskImage , Label , "Label" , int, "");
57 BBTK_INPUT(MaskImage , Replace , "Replace" , int, "");
59 // EO GENERATED DESCRIPTION
61 BBTK_END_DESCRIBE_BLACK_BOX ( MaskImage ) ;
64 #endif // __bbSlicerMaskImage_h_INCLUDED__