]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkImageThreshold.h
#3360 creaVtk Feature New Normal - box ImageThreshold
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageThreshold.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbcreaVtkImageThreshold_h_INCLUDED__
5 #define __bbcreaVtkImageThreshold_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include "vtkImageData.h"
12 #include <vtkImageThreshold.h>
13
14 namespace bbcreaVtk
15 {
16
17 class bbcreaVtk_EXPORT ImageThreshold
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(ImageThreshold,bbtk::AtomicBlackBox);
22 //===== 
23 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
24 //===== 
25   BBTK_DECLARE_INPUT(In,vtkImageData*);
26   BBTK_DECLARE_INPUT(Lower,double);
27   BBTK_DECLARE_INPUT(Upper,double);
28   BBTK_DECLARE_INPUT(InValue,double);
29   BBTK_DECLARE_INPUT(OutValue,double);
30   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
31   BBTK_PROCESS(Process);
32   void Process();
33
34         vtkImageThreshold *filter;
35
36 //===== 
37 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
38 //===== 
39 };
40
41 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageThreshold,bbtk::AtomicBlackBox);
42   BBTK_NAME("ImageThreshold");
43   BBTK_AUTHOR("InfoDev");
44   BBTK_DESCRIPTION("No Description.");
45   BBTK_CATEGORY("empty");
46   BBTK_INPUT(ImageThreshold,In,"Input image",vtkImageData*,"");
47   BBTK_INPUT(ImageThreshold,Lower,"(default 0) Lower threshold",double,"");
48   BBTK_INPUT(ImageThreshold,Upper,"(default 10000) Upper threshold",double,"");
49   BBTK_INPUT(ImageThreshold,InValue,"(default 255) In value",double,"");
50   BBTK_INPUT(ImageThreshold,OutValue,"(default 0) Out Value",double,"");
51   BBTK_OUTPUT(ImageThreshold,Out,"Output image",vtkImageData*,"");
52 BBTK_END_DESCRIBE_BLACK_BOX(ImageThreshold);
53 //===== 
54 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
55 //===== 
56 }
57 // EO namespace bbcreaVtk
58
59 #endif // __bbcreaVtkImageThreshold_h_INCLUDED__
60