1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00302_Filter.bbs
4 # ----------------------------------
7 # ----------------------
14 include creaMaracasVisu
19 description "Description ??"
22 new creaVtk:OutputWindow Box00
24 new std:ConcatStrings Box01
26 new std:ConcatStrings Box02
28 new std:ConcatStrings Box03
30 new wx:OutputText Box05
32 new wx:OutputText Box06
34 new wx:LayoutLine Box07
36 new wx:LayoutSplit Box08
37 set Box08.Orientation "H"
38 set Box08.WinTitle "00302_Filter.bbs"
40 new creaMaracasVisu:ViewerNV Box09
42 new vtk:MetaImageReader Box10
44 new wx:LayoutTab Box11
46 new creaMaracasVisu:ViewerNV Box12
48 new creaVtk:ImageThreshold Box13
49 set Box13.InValue "255"
51 set Box13.OutValue "0"
52 set Box13.Upper "10000"
54 new std:SplitFilePathVector Box14
56 new std:ConcatStrings Box15
57 set Box15.In1 "mkdir -p "
59 new wx:OutputText Box16
61 new std:ExecSystemCommand Box17
63 new vtk:MetaImageWriter Box18
64 set Box18.Compression "true"
66 new std:MultipleInputs Box19
70 new std:ReadColumnsString Box23
71 set Box23.Dimension "2"
73 new std:GetVectorStringElement Box24
76 new vtk:MetaImageWriter Box25
77 set Box25.Compression "true"
79 new std:ConcatStrings Box26
80 set Box26.In2 ".noCorrection.mha"
82 new creaMiniTools:WriteStatePatientSystem Box27
83 set Box27.State "Finish"
85 new std:ConcatStrings Box29
86 set Box29.In2 "/Step03_Filter.txt"
88 new std:ConcatStrings Box32
94 connect Box02.Out Box05.In
96 connect Box03.Out Box06.In
98 connect Box05.Widget Box07.Widget3
100 connect Box06.Widget Box07.Widget5
102 connect Box01.Out Box10.In
104 connect Box10.Out Box09.In
106 connect Box09.Widget Box11.Widget1
108 connect Box11.Widget Box08.Widget2
110 connect Box10.Out Box13.In
112 connect Box13.Out Box12.In
114 connect Box03.Out Box14.In
116 connect Box14.Path Box15.In2
118 connect Box15.Out Box17.In
120 connect Box18.BoxChange Box19.In4
122 connect Box03.Out Box18.Filename
124 connect Box13.Out Box18.In
126 connect Box12.Widget Box11.Widget4
128 connect Box17.BoxChange Box19.In1
130 connect Box07.Widget Box08.Widget1
132 connect Box02.Out Box23.FileName
134 connect Box23.lstData2 Box24.In
136 connect Box24.Out Box16.In
138 connect Box16.Widget Box07.Widget7
140 connect Box24.Out Box13.Lower
142 connect Box13.Out Box25.In
144 connect Box03.Out Box26.In1
146 connect Box25.BoxChange Box19.In6
148 connect Box26.Out Box25.Filename
150 connect Box27.boxChange Box19.In8
152 connect Box14.Path Box29.In1
154 connect Box29.Out Box27.Filename
157 connect Box32.Out Box27.User
159 connect Box20.BoxChange Box19.In9
163 # Complex input ports
164 input InImage Box01.In1 " "
165 input OutImage Box03.In1 " "
166 input InitialValues Box02.In1 " "
167 input creaUser Box32.In1 " "