#ifndef __bbUtilitiesImageThreshold_h_INCLUDED__ #define __bbUtilitiesImageThreshold_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" //---------------------------------------------------------------------------- // Class definition include //---------------------------------------------------------------------------- #include "iostream" #include "vtkImageData.h" #include "vtkImageThreshold.h" namespace bbUtilities { class /*BBTK_EXPORT*/ ImageThreshold : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(ImageThreshold,bbtk::AtomicBlackBox); //================================================================== BBTK_DECLARE_INPUT(In,vtkImageData*); BBTK_DECLARE_INPUT(Upper,double); BBTK_DECLARE_INPUT(Lower,double); BBTK_DECLARE_OUTPUT(Out,vtkImageData*); BBTK_PROCESS(Process); void Process(); protected: vtkImageThreshold* filter; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageThreshold,bbtk::AtomicBlackBox); BBTK_NAME("ImageThreshold"); BBTK_AUTHOR("Monica Lozano"); BBTK_DESCRIPTION("Makes the image threshold between two values"); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(ImageThreshold,In,"Image to filter",vtkImageData*, ""); BBTK_INPUT(ImageThreshold,Upper,"Upper value for thresholding",double, ""); BBTK_INPUT(ImageThreshold,Lower,"Lower value for thresholding",double, ""); BBTK_OUTPUT(ImageThreshold,Out,"Image filtered",vtkImageData*, ""); BBTK_END_DESCRIBE_BLACK_BOX(ImageThreshold); } // EO namespace bbUtilities #endif // __bbUtilitiesImageThreshold_h_INCLUDED__