]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkApplyMask.h
#3329 creaVtk Feature New Normal - new options for Applay mask box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkApplyMask.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 __bbcreaVtkApplyMask_h_INCLUDED__
5 #define __bbcreaVtkApplyMask_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include "vtkImageData.h"
12 namespace bbcreaVtk
13 {
14
15 class bbcreaVtk_EXPORT ApplyMask
16  : 
17    public bbtk::AtomicBlackBox
18 {
19   BBTK_BLACK_BOX_INTERFACE(ApplyMask,bbtk::AtomicBlackBox);
20 //===== 
21 // 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)
22 //===== 
23   BBTK_DECLARE_INPUT(Background,double);
24   BBTK_DECLARE_INPUT(Label,double);
25   BBTK_DECLARE_INPUT(Image,vtkImageData*);
26   BBTK_DECLARE_INPUT(Mask,vtkImageData*);
27   BBTK_DECLARE_INPUT(Type,int);
28   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
29   BBTK_PROCESS(Process);
30   void Process();
31 //===== 
32 // 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)
33 //===== 
34 };
35
36 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ApplyMask,bbtk::AtomicBlackBox);
37   BBTK_NAME("ApplyMask");
38   BBTK_AUTHOR("InfoDev");
39   BBTK_DESCRIPTION("No Description.");
40   BBTK_CATEGORY("empty");
41   BBTK_INPUT(ApplyMask,Background,"Background value",double,"");
42   BBTK_INPUT(ApplyMask,Label,"(double 255)  Label value (type 1,2)",double,"");
43   BBTK_INPUT(ApplyMask,Image,"Input image",vtkImageData*,"");
44   BBTK_INPUT(ApplyMask,Mask,"Input mask",vtkImageData*,"");
45   BBTK_INPUT(ApplyMask,Type,"(default 0) 0:Create new image  1:Modify the Image input with Label value at the mask place   2: Modify the Image input with the value of the mask",int,"");
46   BBTK_OUTPUT(ApplyMask,Out,"Output image",vtkImageData*,"");
47 BBTK_END_DESCRIBE_BLACK_BOX(ApplyMask);
48 //===== 
49 // 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)
50 //===== 
51 }
52 // EO namespace bbcreaVtk
53
54 #endif // __bbcreaVtkApplyMask_h_INCLUDED__
55