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(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);
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)
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);
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)
54 // EO namespace bbcreaVtk
56 #endif // __bbcreaVtkApplyMask_h_INCLUDED__