]> Creatis software - creaImageIO.git/blob - bbtk/src/bbcreaImageIOReadImages.h
cb2079eece163e4f69cec943da0408ccc3f25479
[creaImageIO.git] / bbtk / src / bbcreaImageIOReadImages.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 __bbcreaImageIOReadImages_h_INCLUDED__
5 #define __bbcreaImageIOReadImages_h_INCLUDED__
6
7 #include "bbcreaImageIO_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10 #include <vtkImageData.h>
11
12 namespace bbcreaImageIO
13 {
14
15
16 typedef std::map<std::string, std::string> MapInfoDicom;
17 typedef std::vector< MapInfoDicom > VectorMapInfoDicom;
18
19 class bbcreaImageIO_EXPORT ReadImages
20  : 
21    public bbtk::AtomicBlackBox
22 {
23   BBTK_BLACK_BOX_INTERFACE(ReadImages,bbtk::AtomicBlackBox);
24 //===== 
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)
26 //===== 
27   BBTK_DECLARE_INPUT(DicomTags,std::vector<std::string>);
28   BBTK_DECLARE_INPUT(LstNameImages,std::vector<std::string>);
29   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
30   BBTK_DECLARE_OUTPUT(OutImages,std::vector<vtkImageData*>);
31   BBTK_DECLARE_OUTPUT(DicomInfo,VectorMapInfoDicom);
32   BBTK_PROCESS(Process);
33   void Process();
34 //===== 
35 // 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 //===== 
37 };
38
39 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadImages,bbtk::AtomicBlackBox);
40   BBTK_NAME("ReadImages");
41   BBTK_AUTHOR("InfoDev");
42   BBTK_DESCRIPTION("No Description.");
43   BBTK_CATEGORY("empty");
44
45   BBTK_INPUT(ReadImages,DicomTags,"Dicom Tags (vector of Dicom tags ex: D0028_0030  D0020_0037)",std::vector<std::string>,"");
46   BBTK_INPUT(ReadImages,LstNameImages,"List path to images",std::vector<std::string>,"");
47
48   BBTK_OUTPUT(ReadImages,Out,"Output Image",vtkImageData*,"");
49   BBTK_OUTPUT(ReadImages,OutImages,"List of Output Image",std::vector<vtkImageData*>,"");
50   BBTK_OUTPUT(ReadImages,DicomInfo,"vector of maps of Dicom tags",VectorMapInfoDicom,"");
51   
52 BBTK_END_DESCRIBE_BLACK_BOX(ReadImages);
53 //===== 
54 // 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 //===== 
56 }
57 // EO namespace bbcreaImageIO
58
59 #endif // __bbcreaImageIOReadImages_h_INCLUDED__
60