X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaImageIOReadImages.h;fp=bbtk%2Fsrc%2FbbcreaImageIOReadImages.h;h=cb2079eece163e4f69cec943da0408ccc3f25479;hb=3aefe04f265639ae28b0db125d2eab5c1b2ac20a;hp=0000000000000000000000000000000000000000;hpb=aa2f812c1bd0bc2b13ed8969e8a121727df7d052;p=creaImageIO.git diff --git a/bbtk/src/bbcreaImageIOReadImages.h b/bbtk/src/bbcreaImageIOReadImages.h new file mode 100644 index 0000000..cb2079e --- /dev/null +++ b/bbtk/src/bbcreaImageIOReadImages.h @@ -0,0 +1,60 @@ +//===== +// 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) +//===== +#ifndef __bbcreaImageIOReadImages_h_INCLUDED__ +#define __bbcreaImageIOReadImages_h_INCLUDED__ + +#include "bbcreaImageIO_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" +#include + +namespace bbcreaImageIO +{ + + +typedef std::map MapInfoDicom; +typedef std::vector< MapInfoDicom > VectorMapInfoDicom; + +class bbcreaImageIO_EXPORT ReadImages + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(ReadImages,bbtk::AtomicBlackBox); +//===== +// 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) +//===== + BBTK_DECLARE_INPUT(DicomTags,std::vector); + BBTK_DECLARE_INPUT(LstNameImages,std::vector); + BBTK_DECLARE_OUTPUT(Out,vtkImageData*); + BBTK_DECLARE_OUTPUT(OutImages,std::vector); + BBTK_DECLARE_OUTPUT(DicomInfo,VectorMapInfoDicom); + BBTK_PROCESS(Process); + void Process(); +//===== +// 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) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadImages,bbtk::AtomicBlackBox); + BBTK_NAME("ReadImages"); + BBTK_AUTHOR("InfoDev"); + BBTK_DESCRIPTION("No Description."); + BBTK_CATEGORY("empty"); + + BBTK_INPUT(ReadImages,DicomTags,"Dicom Tags (vector of Dicom tags ex: D0028_0030 D0020_0037)",std::vector,""); + BBTK_INPUT(ReadImages,LstNameImages,"List path to images",std::vector,""); + + BBTK_OUTPUT(ReadImages,Out,"Output Image",vtkImageData*,""); + BBTK_OUTPUT(ReadImages,OutImages,"List of Output Image",std::vector,""); + BBTK_OUTPUT(ReadImages,DicomInfo,"vector of maps of Dicom tags",VectorMapInfoDicom,""); + +BBTK_END_DESCRIBE_BLACK_BOX(ReadImages); +//===== +// 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) +//===== +} +// EO namespace bbcreaImageIO + +#endif // __bbcreaImageIOReadImages_h_INCLUDED__ +