#ifndef __bbSlicerThresholdImage_h_INCLUDED__ #define __bbSlicerThresholdImage_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 ThresholdImage : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE ( ThresholdImage , bbtk::AtomicBlackBox ) ; // GENERATED ARGS BBTK_DECLARE_INPUT ( InputVolume , std::string ); BBTK_DECLARE_INPUT ( OutputVolume , std::string ); BBTK_DECLARE_INPUT ( ThresholdValue , int ); BBTK_DECLARE_INPUT ( Lower , int ); BBTK_DECLARE_INPUT ( Upper , int ); BBTK_DECLARE_INPUT ( OutsideValue , int ); BBTK_DECLARE_INPUT ( ThresholdType , 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 ( ThresholdImage , bbtk::AtomicBlackBox ) ; BBTK_NAME ( "ThresholdImage" ) ; BBTK_AUTHOR ( "Nicole Aucoin, BWH Ron Kikinis, BWH" ) ; 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" ) ; BBTK_CATEGORY ( "Filtering" ) ; // GENERATED DESCRPTION BBTK_INPUT(ThresholdImage , InputVolume , "InputVolume" , std::string, ""); BBTK_INPUT(ThresholdImage , OutputVolume , "OutputVolume" , std::string, ""); BBTK_INPUT(ThresholdImage , ThresholdValue , "ThresholdValue" , int, ""); BBTK_INPUT(ThresholdImage , Lower , "Lower" , int, ""); BBTK_INPUT(ThresholdImage , Upper , "Upper" , int, ""); BBTK_INPUT(ThresholdImage , OutsideValue , "OutsideValue" , int, ""); BBTK_INPUT(ThresholdImage , ThresholdType , "ThresholdType" , std::string, ""); // EO GENERATED DESCRIPTION BBTK_END_DESCRIBE_BLACK_BOX ( ThresholdImage ) ; } #endif // __bbSlicerThresholdImage_h_INCLUDED__