1 #ifndef __bbSlicerThresholdImage_h_INCLUDED__
2 #define __bbSlicerThresholdImage_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 ThresholdImage
26 public bbtk::AtomicBlackBox {
27 BBTK_BLACK_BOX_INTERFACE ( ThresholdImage , bbtk::AtomicBlackBox ) ;
31 BBTK_DECLARE_INPUT ( InputVolume , std::string );
32 BBTK_DECLARE_INPUT ( OutputVolume , std::string );
33 BBTK_DECLARE_INPUT ( ThresholdValue , int );
34 BBTK_DECLARE_INPUT ( Lower , int );
35 BBTK_DECLARE_INPUT ( Upper , int );
36 BBTK_DECLARE_INPUT ( OutsideValue , int );
37 BBTK_DECLARE_INPUT ( ThresholdType , std::string );
41 BBTK_PROCESS ( Process ) ;
44 void execute ( std::string lib , int _argc , char * _argv[] ) ;
47 BBTK_BEGIN_DESCRIBE_BLACK_BOX ( ThresholdImage , bbtk::AtomicBlackBox ) ;
48 BBTK_NAME ( "ThresholdImage" ) ;
49 BBTK_AUTHOR ( "Nicole Aucoin, BWH Ron Kikinis, BWH" ) ;
50 BBTK_DESCRIPTION ( "pThreshold an image./ppSet image values to a user-specified outside value if they are below, above, or between simple threshold values./ppThresholdAbove: The values greater than or equal to the threshold value are set to OutsideValue./ppThresholdBelow: The values less than or equal to the threshold value are set to OutsideValue./ppThresholdOutside: The values outside the range Lower-Upper are set to OutsideValue./ppAlthough all image types are supported on input, only signed types are produced./pp" ) ;
51 BBTK_CATEGORY ( "Filtering" ) ;
53 // GENERATED DESCRPTION
55 BBTK_INPUT(ThresholdImage , InputVolume , "InputVolume" , std::string, "");
56 BBTK_INPUT(ThresholdImage , OutputVolume , "OutputVolume" , std::string, "");
57 BBTK_INPUT(ThresholdImage , ThresholdValue , "ThresholdValue" , int, "");
58 BBTK_INPUT(ThresholdImage , Lower , "Lower" , int, "");
59 BBTK_INPUT(ThresholdImage , Upper , "Upper" , int, "");
60 BBTK_INPUT(ThresholdImage , OutsideValue , "OutsideValue" , int, "");
61 BBTK_INPUT(ThresholdImage , ThresholdType , "ThresholdType" , std::string, "");
63 // EO GENERATED DESCRIPTION
65 BBTK_END_DESCRIBE_BLACK_BOX ( ThresholdImage ) ;
68 #endif // __bbSlicerThresholdImage_h_INCLUDED__