1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs
4 # ----------------------------------
7 # ----------------------
17 description "Description ??"
20 new vtk:LoadHola Box00
22 new itk:BinaryThresholdImageFilter Box02
23 set Box02.InsideValue "255"
24 set Box02.LowerThreshold "1250"
25 set Box02.OutsideValue "0"
26 set Box02.UpperThreshold "1500"
28 new vtk:MarchingCubes Box05
29 set Box05.ComputeNormalsOn "true"
30 set Box05.ComputeScalarsOn "false"
33 new vtk:ImageContinuousErode3D Box06
34 set Box06.KernelSizeX "3"
35 set Box06.KernelSizeY "3"
36 set Box06.KernelSizeZ "3"
38 new vtk:SegmentationConnectivity Box09
39 set Box09.PositionXYZ "73 101 93"
40 set Box09.ThresholdMinMax "200 300"
42 new wt:ViewerNVWeb Box12
43 set Box12.ImagePath "xx"
49 set Box15.ReactiveOnTrack "true"
50 set Box15.Title "LowerThreshold"
56 set Box16.ReactiveOnTrack "true"
57 set Box16.Title "UpperThresHold"
59 new wt:LayoutLine Box17
61 new wt:CommandButton Box21
62 set Box21.Label "Run...Q"
64 new wt:configServerWT Box24
65 set Box24.DocRoot "/var/www/testwtdbg/docroot/appli1/"
68 new itk:ImageWriter Box26
70 new std:ConcatStrings Box27
71 set Box27.In1 "/var/www/testwtdbg/docroot/appli1/"
73 new std:ConcatStrings Box28
74 set Box28.In2 "/imagesTMP/"
75 set Box28.In3 "hola.nii"
77 new vtk:ImageGaussianSmooth Box29
86 set Box31.ReactiveOnTrack "true"
87 set Box31.Title "Smooth"
91 new wt:ImageWriteB Box33
93 new wt:OutputText Box35
95 new wt:LayoutSplit Box36
96 set Box36.Orientation "h"
99 connect Box00.Out Box02.In
101 connect Box02.Out Box06.In
103 connect Box06.Out Box09.In
105 connect Box15.Out Box02.LowerThreshold
107 connect Box16.Out Box02.UpperThreshold
109 connect Box15.Widget Box17.Widget2
111 connect Box16.Widget Box17.Widget3
113 connect Box21.Widget Box17.Widget5
115 connect Box00.Out Box26.In
117 connect Box27.Out Box28.In1
119 connect Box28.Out Box26.Filename
121 connect Box09.Out Box29.In
123 connect Box31.Widget Box17.Widget1
125 connect Box31.Out Box29.StdDevX
127 connect Box31.Out Box29.StdDevY
129 connect Box31.Out Box29.StdDevZ
131 connect Box29.Out Box05.In
133 connect Box05.Out Box37.vtkPolyData
135 connect Box12.Viewer1 Box37.viewerwt
137 connect Box21.BoxChange Box37.boxExecute
139 connect Box00.Out Box33.Image
141 connect Box35.Widget Box17.Widget4
143 connect Box33.FileName Box35.In
145 connect Box21.BoxChange Box35.BoxExecute
147 connect Box17.Widget Box36.Widget1
149 connect Box12.Widget Box36.Widget2
151 connect Box33.FileName Box12.ImagePath
153 connect Box33.out Box24.BoxExecute
157 # Complex input ports