#ifndef __bbvtkUnaryOperations_h_INCLUDED__ #define __bbvtkUnaryOperations_h_INCLUDED__ #include "bbvtk_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" #include #include #include #include #include namespace bbvtk { class bbvtk_EXPORT UnaryOperations : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(UnaryOperations,bbtk::AtomicBlackBox); BBTK_DECLARE_INPUT(In1,vtkImageData*); BBTK_DECLARE_INPUT(Operation,int); BBTK_DECLARE_INPUT(InConstant,double); BBTK_DECLARE_OUTPUT(Out,vtkImageData*); BBTK_PROCESS(Process); void Process(); void crearPredeterminado(); void substractWithMinimum(); // void MultiplyBy(); bbtkStaticLecture lector; vtkImageMathematics* ope; vtkImageData* constante; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(UnaryOperations,bbtk::AtomicBlackBox); BBTK_NAME("UnaryOperations"); BBTK_AUTHOR("Info-Dev Creatis"); BBTK_DESCRIPTION("math operation over an image"); BBTK_CATEGORY("filtre"); BBTK_INPUT(UnaryOperations,In1,"Image to be operated",vtkImageData*,""); BBTK_INPUT(UnaryOperations,InConstant,"Constant that will be used in the operations.",double,"0 default"); BBTK_INPUT(UnaryOperations,Operation,"0:Add (Default), 1:subtract, 2:multiply, 3:divide, 4:invert, 5:sin, 6:cos, 7:exp, 8:log, 9:abs????",int,"Addition default"); BBTK_OUTPUT(UnaryOperations,Out,"",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(UnaryOperations); } // EO namespace bbSimpleProcessing #endif // __bbvtkUnaryOperations_h_INCLUDED__