]> Creatis software - creaMiniTools.git/blob - appli/template_creaPatientsSystem/scripts/00302_Filter.bbs
3421 template_creaPatientsSystem
[creaMiniTools.git] / appli / template_creaPatientsSystem / scripts / 00302_Filter.bbs
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 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaVtk
12 include std
13 include wx
14 include creaMaracasVisu
15 include vtk
16 include creaMiniTools
17
18 author "Author ??"
19 description "Description ??"
20 category "<VOID>"
21
22 new creaVtk:OutputWindow Box00
23
24 new std:ConcatStrings Box01
25
26 new std:ConcatStrings Box02
27
28 new std:ConcatStrings Box03
29
30 new wx:OutputText Box05
31
32 new wx:OutputText Box06
33
34 new wx:LayoutLine Box07
35
36 new wx:LayoutSplit Box08
37   set Box08.Orientation "H"
38   set Box08.WinTitle "00302_Filter.bbs"
39
40 new creaMaracasVisu:ViewerNV Box09
41
42 new vtk:MetaImageReader Box10
43
44 new wx:LayoutTab Box11
45
46 new creaMaracasVisu:ViewerNV Box12
47
48 new creaVtk:ImageThreshold Box13
49   set Box13.InValue "255"
50   set Box13.Lower "134"
51   set Box13.OutValue "0"
52   set Box13.Upper "10000"
53
54 new std:SplitFilePathVector Box14
55
56 new std:ConcatStrings Box15
57   set Box15.In1 "mkdir -p  "
58
59 new wx:OutputText Box16
60
61 new std:ExecSystemCommand Box17
62
63 new vtk:MetaImageWriter Box18
64   set Box18.Compression "true"
65
66 new std:MultipleInputs Box19
67
68 new std:Exit Box20
69
70 new std:ReadColumnsString Box23
71   set Box23.Dimension "2"
72
73 new std:GetVectorStringElement Box24
74   set Box24.I "0"
75
76 new vtk:MetaImageWriter Box25
77   set Box25.Compression "true"
78
79 new std:ConcatStrings Box26
80   set Box26.In2 ".noCorrection.mha"
81
82 new creaMiniTools:WriteStatePatientSystem Box27
83   set Box27.State "Finish"
84
85 new std:ConcatStrings Box29
86   set Box29.In2 "/Step03_Filter.txt"
87
88 new std:ConcatStrings Box32
89
90
91
92
93
94 connect Box02.Out Box05.In
95
96 connect Box03.Out Box06.In
97
98 connect Box05.Widget Box07.Widget3
99
100 connect Box06.Widget Box07.Widget5
101
102 connect Box01.Out Box10.In
103
104 connect Box10.Out Box09.In
105
106 connect Box09.Widget Box11.Widget1
107
108 connect Box11.Widget Box08.Widget2
109
110 connect Box10.Out Box13.In
111
112 connect Box13.Out Box12.In
113
114 connect Box03.Out Box14.In
115
116 connect Box14.Path Box15.In2
117
118 connect Box15.Out Box17.In
119
120 connect Box18.BoxChange Box19.In4
121
122 connect Box03.Out Box18.Filename
123
124 connect Box13.Out Box18.In
125
126 connect Box12.Widget Box11.Widget4
127
128 connect Box17.BoxChange Box19.In1
129
130 connect Box07.Widget Box08.Widget1
131
132 connect Box02.Out Box23.FileName
133
134 connect Box23.lstData2 Box24.In
135
136 connect Box24.Out Box16.In
137
138 connect Box16.Widget Box07.Widget7
139
140 connect Box24.Out Box13.Lower
141
142 connect Box13.Out Box25.In
143
144 connect Box03.Out Box26.In1
145
146 connect Box25.BoxChange Box19.In6
147
148 connect Box26.Out Box25.Filename
149
150 connect Box27.boxChange Box19.In8
151
152 connect Box14.Path Box29.In1
153
154 connect Box29.Out Box27.Filename
155
156
157 connect Box32.Out Box27.User
158
159 connect Box20.BoxChange Box19.In9
160
161
162
163 # Complex input ports
164 input InImage Box01.In1 " "
165 input OutImage Box03.In1 " "
166 input InitialValues Box02.In1 " "
167 input creaUser Box32.In1 " "
168 exec Box00
169 exec Box19