]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkUnaryOperations.h
f1693defde58d7daf45d8e7b0b46c621d860ccd3
[bbtk.git] / packages / vtk / src / bbvtkUnaryOperations.h
1 #ifndef __bbvtkUnaryOperations_h_INCLUDED__
2 #define __bbvtkUnaryOperations_h_INCLUDED__
3 #include "bbvtk_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
5 #include "iostream"
6
7
8 #include <vtkImageMathematics.h>
9 #include <vtkImageData.h>
10 #include <vtkType.h>
11 #include <vtkImageData.h>
12 #include <bbtkStaticLecture.h>
13
14
15 namespace bbvtk
16 {
17
18
19
20
21 class bbvtk_EXPORT UnaryOperations
22  :
23    public bbtk::AtomicBlackBox
24 {
25   BBTK_BLACK_BOX_INTERFACE(UnaryOperations,bbtk::AtomicBlackBox);
26   BBTK_DECLARE_INPUT(In1,vtkImageData*);
27   BBTK_DECLARE_INPUT(Operation,int);
28   BBTK_DECLARE_INPUT(InConstant,double);
29   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
30   BBTK_PROCESS(Process);
31   void Process();
32
33   void crearPredeterminado();
34   void substractWithMinimum();
35 //  void MultiplyBy();
36
37   bbtkStaticLecture lector;
38
39   vtkImageMathematics* ope;
40   vtkImageData* constante;
41 };
42
43 BBTK_BEGIN_DESCRIBE_BLACK_BOX(UnaryOperations,bbtk::AtomicBlackBox);
44   BBTK_NAME("UnaryOperations");
45   BBTK_AUTHOR("Info-Dev Creatis");
46   BBTK_DESCRIPTION("math operation over an image");
47   BBTK_CATEGORY("filtre");
48   BBTK_INPUT(UnaryOperations,In1,"Image to be operated",vtkImageData*,"");
49   BBTK_INPUT(UnaryOperations,InConstant,"Constant that will be used in the operations.",double,"0 default");
50   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");
51   BBTK_OUTPUT(UnaryOperations,Out,"",vtkImageData*,"");
52 BBTK_END_DESCRIBE_BLACK_BOX(UnaryOperations);
53 }
54 // EO namespace bbSimpleProcessing
55
56 #endif // __bbvtkUnaryOperations_h_INCLUDED__
57
58