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 __bbcreaVtkImageExtractComponents_h_INCLUDED__
5 #define __bbcreaVtkImageExtractComponents_h_INCLUDED__
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
12 #include <vtkVersionMacros.h>
13 #include <vtkImageData.h>
14 #include <vtkImageExtractComponents.h>
19 class bbcreaVtk_EXPORT ImageExtractComponents
21 public bbtk::AtomicBlackBox
23 BBTK_BLACK_BOX_INTERFACE(ImageExtractComponents,bbtk::AtomicBlackBox);
25 // 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)
27 BBTK_DECLARE_INPUT(In,vtkImageData*);
28 BBTK_DECLARE_INPUT(Component0,int);
29 BBTK_DECLARE_INPUT(Component1,int);
30 BBTK_DECLARE_INPUT(Component2,int);
31 BBTK_DECLARE_INPUT(Component3,int);
32 BBTK_DECLARE_INPUT(Type,int);
33 BBTK_DECLARE_OUTPUT(Out0,vtkImageData*);
34 BBTK_DECLARE_OUTPUT(Out1,vtkImageData*);
35 BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
36 BBTK_DECLARE_OUTPUT(Out3,vtkImageData*);
37 BBTK_DECLARE_OUTPUT(LstOut,std::vector< vtkImageData* >);
39 BBTK_PROCESS(Process);
43 vtkImageExtractComponents* IEC0;
44 vtkImageExtractComponents* IEC1;
45 vtkImageExtractComponents* IEC2;
46 vtkImageExtractComponents* IEC3;
47 std::vector<vtkImageExtractComponents*> lstIEC;
48 std::vector<vtkImageData*> lstOut;
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)
55 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageExtractComponents,bbtk::AtomicBlackBox);
56 BBTK_NAME("ImageExtractComponents");
57 BBTK_AUTHOR("InfoDev");
58 BBTK_DESCRIPTION("No Description.");
59 BBTK_CATEGORY("empty");
61 BBTK_INPUT(ImageExtractComponents,In,"Input image",vtkImageData*,"");
62 BBTK_INPUT(ImageExtractComponents,Component0,"Component 0 (default -1)",int,"");
63 BBTK_INPUT(ImageExtractComponents,Component1,"Component 1 (default -1)",int,"");
64 BBTK_INPUT(ImageExtractComponents,Component2,"Component 2 (default -1)",int,"");
65 BBTK_INPUT(ImageExtractComponents,Component3,"Component 3 (default -1)",int,"");
66 BBTK_INPUT(ImageExtractComponents,Type,"(default 0) 0=Out comp.0..3 , 1=Out List of all components",int,"");
68 BBTK_OUTPUT(ImageExtractComponents,Out0,"Output image 0",vtkImageData*,"");
69 BBTK_OUTPUT(ImageExtractComponents,Out1,"Output image 1",vtkImageData*,"");
70 BBTK_OUTPUT(ImageExtractComponents,Out2,"Output image 2",vtkImageData*,"");
71 BBTK_OUTPUT(ImageExtractComponents,Out3,"Output image 3",vtkImageData*,"");
72 BBTK_OUTPUT(ImageExtractComponents,LstOut,"List of all components by single images",std::vector< vtkImageData* >,"");
74 BBTK_END_DESCRIBE_BLACK_BOX(ImageExtractComponents);
76 // 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)
80 } // EO namespace bbcreaVtk
82 #endif // __bbcreaVtkImageExtractComponents_h_INCLUDED__