1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs
4 # ----------------------------------
7 # ----------------------
16 description "Description ??"
19 new vtk:LoadHola Box00
21 new itk:BinaryThresholdImageFilter Box02
22 set Box02.InsideValue "255"
23 set Box02.LowerThreshold "1250"
24 set Box02.OutsideValue "0"
25 set Box02.UpperThreshold "1500"
27 new vtk:MarchingCubes Box05
28 set Box05.ComputeNormalsOn "true"
29 set Box05.ComputeScalarsOn "false"
32 new vtk:ImageContinuousErode3D Box06
33 set Box06.KernelSizeX "3"
34 set Box06.KernelSizeY "3"
35 set Box06.KernelSizeZ "3"
37 new vtk:SegmentationConnectivity Box09
38 set Box09.PositionXYZ "73 101 93"
39 set Box09.ThresholdMinMax "200 300"
41 new wt:ViewerNVWeb Box12
42 set Box12.ImagePath "imagesTMP/hola.nii"
48 set Box15.ReactiveOnTrack "true"
49 set Box15.Title "LowerThreshold"
55 set Box16.ReactiveOnTrack "true"
56 set Box16.Title "UpperThresHold"
58 new wt:LayoutLine Box17
60 new wt:CommandButton Box21
61 set Box21.Label "Segmentation"
63 new vtk:ImageGaussianSmooth Box29
72 set Box31.ReactiveOnTrack "true"
73 set Box31.Title "Smooth"
77 new wt:configServerWT Box38
78 set Box38.DocRoot "/var/www/testwtdbg/docroot/appli1/"
81 new wt:ImageWriteB Box39
83 new wt:LayoutSplit Box40
84 set Box40.Orientation "h"
86 new wt:OutputText Box25
87 set Box25.In "ALT-left to refresh screen"
90 connect Box00.Out Box02.In
92 connect Box02.Out Box06.In
94 connect Box06.Out Box09.In
96 connect Box15.Out Box02.LowerThreshold
98 connect Box16.Out Box02.UpperThreshold
100 connect Box15.Widget Box17.Widget2
102 connect Box16.Widget Box17.Widget3
104 connect Box21.Widget Box17.Widget5
106 connect Box09.Out Box29.In
108 connect Box31.Widget Box17.Widget1
110 connect Box31.Out Box29.StdDevX
112 connect Box31.Out Box29.StdDevY
114 connect Box31.Out Box29.StdDevZ
116 connect Box29.Out Box05.In
118 connect Box05.Out Box37.vtkPolyData
120 connect Box12.Viewer1 Box37.viewerwt
122 connect Box00.Out Box39.Image
124 connect Box17.Widget Box40.Widget1
126 connect Box12.Widget Box40.Widget2
128 connect Box21.BoxChange Box37.boxExecute
130 connect Box39.FileName Box12.ImagePath
132 connect Box25.Widget Box17.Widget6
136 # Complex input ports