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 <vtkImageData.h>
13 #include <vtkImageExtractComponents.h>
18 class bbcreaVtk_EXPORT ImageExtractComponents
20 public bbtk::AtomicBlackBox
22 BBTK_BLACK_BOX_INTERFACE(ImageExtractComponents,bbtk::AtomicBlackBox);
24 // 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)
26 BBTK_DECLARE_INPUT(In,vtkImageData*);
27 BBTK_DECLARE_INPUT(Component0,int);
28 BBTK_DECLARE_INPUT(Component1,int);
29 BBTK_DECLARE_INPUT(Component2,int);
30 BBTK_DECLARE_INPUT(Component3,int);
31 BBTK_DECLARE_INPUT(Type,int);
32 BBTK_DECLARE_OUTPUT(Out0,vtkImageData*);
33 BBTK_DECLARE_OUTPUT(Out1,vtkImageData*);
34 BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
35 BBTK_DECLARE_OUTPUT(Out3,vtkImageData*);
36 BBTK_DECLARE_OUTPUT(LstOut,std::vector< vtkImageData* >);
38 BBTK_PROCESS(Process);
42 vtkImageExtractComponents* IEC0;
43 vtkImageExtractComponents* IEC1;
44 vtkImageExtractComponents* IEC2;
45 vtkImageExtractComponents* IEC3;
46 std::vector<vtkImageExtractComponents*> lstIEC;
47 std::vector<vtkImageData*> lstOut;
50 // 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 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageExtractComponents,bbtk::AtomicBlackBox);
55 BBTK_NAME("ImageExtractComponents");
56 BBTK_AUTHOR("InfoDev");
57 BBTK_DESCRIPTION("No Description.");
58 BBTK_CATEGORY("empty");
60 BBTK_INPUT(ImageExtractComponents,In,"Input image",vtkImageData*,"");
61 BBTK_INPUT(ImageExtractComponents,Component0,"Component 0 (default -1)",int,"");
62 BBTK_INPUT(ImageExtractComponents,Component1,"Component 1 (default -1)",int,"");
63 BBTK_INPUT(ImageExtractComponents,Component2,"Component 2 (default -1)",int,"");
64 BBTK_INPUT(ImageExtractComponents,Component3,"Component 3 (default -1)",int,"");
65 BBTK_INPUT(ImageExtractComponents,Type,"(default 0) 0=Out comp.0..3 , 1=Out List of all components",int,"");
67 BBTK_OUTPUT(ImageExtractComponents,Out0,"Output image 0",vtkImageData*,"");
68 BBTK_OUTPUT(ImageExtractComponents,Out1,"Output image 1",vtkImageData*,"");
69 BBTK_OUTPUT(ImageExtractComponents,Out2,"Output image 2",vtkImageData*,"");
70 BBTK_OUTPUT(ImageExtractComponents,Out3,"Output image 3",vtkImageData*,"");
71 BBTK_OUTPUT(ImageExtractComponents,LstOut,"List of all components by single images",std::vector< vtkImageData* >,"");
73 BBTK_END_DESCRIBE_BLACK_BOX(ImageExtractComponents);
75 // 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)
79 } // EO namespace bbcreaVtk
81 #endif // __bbcreaVtkImageExtractComponents_h_INCLUDED__