1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C8/creatools_source/bbtk/packages/gdcmvtk/bbs/boxes/DicomSerieInfoDir.bbs
4 # ----------------------------------
12 define DicomSerieInfoDir gdcmvtk
15 description "Description ??"
19 new std:FilesFromDirectory Box03
22 new std:GetVectorStringElement Box04
25 new std:GetVectorStringElement Box05
28 new gdcmvtk:GetXCoherentInfoGdcmReader Box06
29 set Box06.DicomTags "D0028_0030"
31 new creaImageIO:GetDicomAttributesFromMaps Box07
32 set Box07.KeyDicom "D0028_0030"
34 new std:ConcatStrings Box08
35 set Box08.In1 "D0008_103e"
37 new std:ConcatStrings Box09
42 new std:GetVectorStringElement Box10
45 new std:GetDoubleVectorSize Box11
47 new std:ReplaceCleanString Box13
51 new std:MagicBox Box15
53 new std:ReplaceCleanString Box16
54 set Box16.Search "____(0imgs)"
56 new std:ReplaceCleanString Box17
60 connect Box04.Out Box03.In
61 connect Box03.Out Box05.In
62 connect Box05.Out Box06.In
63 connect Box06.DicomInfo Box07.In
64 connect Box08.Out Box06.DicomTags
65 connect Box08.Out Box07.KeyDicom
66 connect Box07.Out Box09.In3
67 connect Box03.OutSimple Box11.In
68 connect Box11.VectorSize Box09.In5
69 connect Box09.Out Box13.In
70 connect Box10.Out Box09.In1
71 connect Box15.Out Box10.I
72 connect Box15.Out Box04.I
73 connect Box13.Out Box17.In
74 connect Box17.Out Box16.In
77 input LstPaths Box04.In " "
78 input LstSimpleDirName Box10.In " "
79 input idDir Box15.In " "
81 # Complex output ports
82 output OutString Box16.Out " "