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)
4 #ifndef __bbcreaVtkApplyMask_h_INCLUDED__
5 #define __bbcreaVtkApplyMask_h_INCLUDED__
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
11 #include "vtkImageData.h"
15 class bbcreaVtk_EXPORT ApplyMask
17 public bbtk::AtomicBlackBox
19 BBTK_BLACK_BOX_INTERFACE(ApplyMask,bbtk::AtomicBlackBox);
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)
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);
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)
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);
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)
52 // EO namespace bbcreaVtk
54 #endif // __bbcreaVtkApplyMask_h_INCLUDED__