]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkApplyMask.h
#3399 creaVtk Feature New Normal - box ApplayMask new Input BackroundToAnalice
[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(BackgroundToAnalice,double);
25   BBTK_DECLARE_INPUT(Label,double);
26   BBTK_DECLARE_INPUT(Image,vtkImageData*);
27   BBTK_DECLARE_INPUT(Mask,vtkImageData*);
28   BBTK_DECLARE_INPUT(Type,int);
29   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
30   BBTK_PROCESS(Process);
31   void Process();
32 //===== 
33 // 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)
34 //===== 
35 };
36
37 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ApplyMask,bbtk::AtomicBlackBox);
38   BBTK_NAME("ApplyMask");
39   BBTK_AUTHOR("InfoDev");
40   BBTK_DESCRIPTION("No Description.");
41   BBTK_CATEGORY("empty");
42   BBTK_INPUT(ApplyMask,Background,"(default 0) type 0: Background value in output image     type 1: Nothing     type 2: Nothing",double,"");
43   BBTK_INPUT(ApplyMask,BackgroundToAnalice,"(default 0) Background to check in the mask ",double,"");
44   BBTK_INPUT(ApplyMask,Label,"(double 255)   type 0: Nothing   type 1: valueOut in the mask   type 2: Nothing ",double,"");
45   BBTK_INPUT(ApplyMask,Image,"Input image",vtkImageData*,"");
46   BBTK_INPUT(ApplyMask,Mask,"Input mask",vtkImageData*,"");
47   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,"");
48   BBTK_OUTPUT(ApplyMask,Out,"Output image",vtkImageData*,"");
49 BBTK_END_DESCRIBE_BLACK_BOX(ApplyMask);
50 //===== 
51 // 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)
52 //===== 
53 }
54 // EO namespace bbcreaVtk
55
56 #endif // __bbcreaVtkApplyMask_h_INCLUDED__
57