1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00302_Filter.bbs
4 # ----------------------------------
7 # ----------------------
14 include creaMaracasVisu
18 description "Description ??"
21 new creaVtk:OutputWindow Box00
23 new std:ConcatStrings Box01
25 new std:ConcatStrings Box02
27 new std:ConcatStrings Box03
29 new wx:OutputText Box05
31 new wx:OutputText Box06
33 new wx:LayoutLine Box07
35 new wx:LayoutSplit Box08
36 set Box08.Orientation "H"
37 set Box08.WinTitle "00302_Filter.bbs"
39 new creaMaracasVisu:ViewerNV Box09
41 new vtk:MetaImageReader Box10
43 new wx:LayoutTab Box11
45 new creaMaracasVisu:ViewerNV Box12
47 new creaVtk:ImageThreshold Box13
48 set Box13.InValue "255"
50 set Box13.OutValue "0"
51 set Box13.Upper "10000"
53 new std:SplitFilePathVector Box14
55 new std:ConcatStrings Box15
56 set Box15.In1 "mkdir -p "
58 new wx:OutputText Box16
60 new std:ExecSystemCommand Box17
62 new vtk:MetaImageWriter Box18
63 set Box18.Compression "true"
65 new std:MultipleInputs Box19
69 new std:ReadColumnsString Box23
70 set Box23.Dimension "2"
72 new std:GetVectorStringElement Box24
75 new vtk:MetaImageWriter Box25
76 set Box25.Compression "true"
78 new std:ConcatStrings Box26
79 set Box26.In2 ".noCorrection.mha"
85 connect Box02.Out Box05.In
87 connect Box03.Out Box06.In
89 connect Box05.Widget Box07.Widget3
91 connect Box06.Widget Box07.Widget5
93 connect Box01.Out Box10.In
95 connect Box10.Out Box09.In
97 connect Box09.Widget Box11.Widget1
99 connect Box11.Widget Box08.Widget2
101 connect Box10.Out Box13.In
103 connect Box13.Out Box12.In
105 connect Box03.Out Box14.In
107 connect Box14.Path Box15.In2
109 connect Box15.Out Box17.In
111 connect Box18.BoxChange Box19.In4
113 connect Box03.Out Box18.Filename
115 connect Box13.Out Box18.In
117 connect Box12.Widget Box11.Widget4
119 connect Box17.BoxChange Box19.In1
121 connect Box07.Widget Box08.Widget1
123 connect Box02.Out Box23.FileName
125 connect Box23.lstData2 Box24.In
127 connect Box24.Out Box16.In
129 connect Box16.Widget Box07.Widget7
131 connect Box24.Out Box13.Lower
133 connect Box20.BoxChange Box19.In9
135 connect Box13.Out Box25.In
137 connect Box03.Out Box26.In1
139 connect Box25.BoxChange Box19.In6
141 connect Box26.Out Box25.Filename
145 # Complex input ports
146 input InImage Box01.In1 " "
147 input OutImage Box03.In1 " "
148 input InitialValues Box02.In1 " "