1 #ifndef __bbTransform3DdicomMetaImageReader_DicomInfo_h_INCLUDED__
2 #define __bbTransform3DdicomMetaImageReader_DicomInfo_h_INCLUDED__
3 #include "bbTransform3Ddicom_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
7 namespace bbTransform3Ddicom
10 class bbTransform3Ddicom_EXPORT MetaImageReader_DicomInfo
12 public bbtk::AtomicBlackBox
14 BBTK_BLACK_BOX_INTERFACE(MetaImageReader_DicomInfo,bbtk::AtomicBlackBox);
15 //==================================================================
18 /// User callback called in the box contructor
19 virtual void bbUserConstructor();
20 /// User callback called in the box copy constructor
21 virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
22 /// User callback called in the box destructor
23 virtual void bbUserDestructor();
26 //==================================================================
27 BBTK_DECLARE_INPUT( In , std::string );
28 BBTK_DECLARE_OUTPUT(IPP, std::vector<double> );
29 BBTK_DECLARE_OUTPUT(IOP, std::vector<double> );
30 BBTK_DECLARE_OUTPUT(PixelSpacing, std::vector<double> );
31 BBTK_PROCESS(Process);
33 std::vector<double> IPP;
34 std::vector<double> IOP;
35 std::vector<double> PixelSpacing;
39 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MetaImageReader_DicomInfo,bbtk::AtomicBlackBox);
40 BBTK_NAME("MetaImageReader_DicomInfo");
41 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
42 BBTK_DESCRIPTION("Read MHD and MHD_dicominfo");
44 BBTK_INPUT(MetaImageReader_DicomInfo,In,"File name", std::string ,"");
45 BBTK_OUTPUT(MetaImageReader_DicomInfo,IPP,"Image position patient", std::vector<double>,"");
46 BBTK_OUTPUT(MetaImageReader_DicomInfo,IOP,"Image orientation patient", std::vector<double>,"");
47 BBTK_OUTPUT(MetaImageReader_DicomInfo,PixelSpacing,"Spacing ", std::vector<double>,"");
48 BBTK_END_DESCRIBE_BLACK_BOX(MetaImageReader_DicomInfo);
50 // EO namespace bbTransform3Ddicom
52 #endif // __bbTransform3DdicomMetaImageReader_DicomInfo_h_INCLUDED__