#ifndef __bbUtilitiesImageOr_h_INCLUDED__ #define __bbUtilitiesImageOr_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkImageData.h" namespace bbUtilities { class /*BBTK_EXPORT*/ ImageOr : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(ImageOr,bbtk::AtomicBlackBox); //================================================================== BBTK_DECLARE_INPUT(In1,vtkImageData*); BBTK_DECLARE_INPUT(In2,vtkImageData*); BBTK_DECLARE_OUTPUT(Out,vtkImageData*); BBTK_PROCESS(Process); void Process(); private: vtkImageData* _img; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageOr,bbtk::AtomicBlackBox); BBTK_NAME("ImageOr"); BBTK_AUTHOR("car-prie@uniandes.edu.co"); BBTK_DESCRIPTION("Adds the value of grey in each pixel of the images. Both images must have the same dimensions"); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(ImageOr,In1,"Image number 1 to be added",vtkImageData*,""); BBTK_INPUT(ImageOr,In2,"Image number 2 to be added",vtkImageData*,""); BBTK_OUTPUT(ImageOr,Out,"Result of the image or",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(ImageOr); } // EO namespace bbUtilities #endif // __bbUtilitiesImageOr_h_INCLUDED__