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