1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00100_InsertDataA.bbs
4 # ----------------------------------
7 # ----------------------
11 include creaMaracasVisu
19 description "Description ??"
22 new creaMaracasVisu:ViewerNV Box00
24 new wx:LayoutLine Box02
26 new creaVtk:OutputWindow Box03
28 new wx:LayoutSplit Box04
29 set Box04.Orientation "H"
31 new wx:CommandButton Box06
32 set Box06.Label "Read Camera Image RGB (*.PNG)"
34 new creaImageIO:ReadImages Box07
36 new wx:FileSelector Box09
38 new wx:LayoutSplit Box11
39 set Box11.Proportion "90"
40 set Box11.WinTitle "00100_InsertDataA.bbg"
42 new wx:LayoutLine Box12
43 set Box12.Orientation "H"
45 new wx:InputText Box14
47 set Box14.ReactiveOnKeystroke "2"
50 new wx:CommandButton Box15
51 set Box15.Label "Save & Exit"
53 new std:ConcatStrings Box16
55 new std:ConcatStrings Box17
57 new std:ReplaceCleanString Box18
61 new std:ConcatStrings Box19
62 set Box19.In2 "/image.mha"
64 new std:ConcatStrings Box21
65 set Box21.In1 "mkdir -p "
67 new vtk:MetaImageWriter Box22
68 set Box22.Compression "true"
70 new vtk:vtkImageDataPointerRelay Box23
72 new std:ExecSystemCommand Box24
74 new std:ConcatStrings Box25
75 set Box25.In1 "/results/<CORE>/davila/00100_OriginalImages/Test_01/<PATIENT_ID>/Condition_01"
77 new std:ReplaceCleanString Box26
78 set Box26.Search "<PATIENT_ID>"
80 new wx:OutputText Box27
81 set Box27.Title "File Name"
83 new wx:LayoutLine Box28
88 set Box30.In "Study_A Study_B Study_C"
90 new std:ReplaceCleanString Box31
91 set Box31.Search "<CORE>"
93 new std:MultipleInputs Box32
95 new std:MultipleInputs Box33
97 new wx:OutputText Box34
99 new wx:InputText Box35
101 set Box35.Title "Parameter01"
103 new std:GetVectorStringElement Box36
104 set Box36.ErrorValue "VOID"
107 new std:StringWriter Box37
109 new std:ConcatStrings Box38
110 set Box38.In1 "Parameter01"
113 new std:ConcatStrings Box40
114 set Box40.In2 "/Parameters.txt"
117 connect Box00.Widget Box04.Widget2
119 connect Box02.Widget Box04.Widget1
121 connect Box06.Widget Box02.Widget1
123 connect Box09.Out Box07.LstNameImages
125 connect Box06.BoxChange Box09.BoxExecute
127 connect Box09.BoxChange Box07.BoxExecute
129 connect Box07.BoxChange Box00.BoxExecute
131 connect Box04.Widget Box11.Widget1
134 connect Box16.Out Box17.In1
136 connect Box14.Out Box18.In
138 connect Box17.Out Box19.In1
140 connect Box19.Out Box22.Filename
142 connect Box07.Out Box23.In
144 connect Box23.Out Box00.In
146 connect Box23.Out Box22.In
148 connect Box25.Out Box26.In
150 connect Box18.Out Box26.Replace
152 connect Box19.Out Box27.In
154 connect Box12.Widget Box28.Widget1
156 connect Box27.Widget Box28.Widget2
158 connect Box17.Out Box21.In2
160 connect Box21.Out Box24.In
162 connect Box28.Widget Box11.Widget2
164 connect Box15.Widget Box12.Widget6
166 connect Box30.Widget Box12.Widget1
168 connect Box14.Widget Box12.Widget3
170 connect Box30.OutString Box31.Replace
172 connect Box26.Out Box31.In
174 connect Box31.Out Box17.In2
176 connect Box30.BoxChange Box32.In1
178 connect Box14.BoxChange Box32.In2
180 connect Box32.BoxChange Box27.BoxExecute
182 connect Box15.BoxChange Box33.BoxExecute
184 connect Box24.BoxChange Box33.In1
186 connect Box22.BoxChange Box33.In3
188 connect Box29.BoxChange Box33.In5
190 connect Box34.Widget Box02.Widget3
192 connect Box09.Out Box34.In
194 connect Box09.BoxChange Box34.BoxExecute
196 connect Box35.Widget Box12.Widget2
198 connect Box35.Out Box36.In
200 connect Box38.Out Box37.In0
202 connect Box17.Out Box40.In1
204 connect Box37.BoxChange Box33.In2
206 connect Box40.Out Box37.FileName
208 connect Box36.Out Box38.In3
212 # Complex input ports
213 input ProjectDir Box16.In1 " "