]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs
#2691 creaWT Feature New Normal - Implementation temp files
[creaWT.git] / wt / bbtk_wt_PKG / bbs / appli / demoPresentacion1Boton03.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include itk
13 include wt
14
15 author "Author ??"
16 description "Description ??"
17 category "<VOID>"
18
19 new vtk:LoadHola Box00
20
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"
26
27 new vtk:MarchingCubes Box05
28   set Box05.ComputeNormalsOn "true"
29   set Box05.ComputeScalarsOn "false"
30   set Box05.Value "128"
31
32 new vtk:ImageContinuousErode3D Box06
33   set Box06.KernelSizeX "3"
34   set Box06.KernelSizeY "3"
35   set Box06.KernelSizeZ "3"
36
37 new vtk:SegmentationConnectivity Box09
38   set Box09.PositionXYZ "73 101 93"
39   set Box09.ThresholdMinMax "200 300"
40
41 new wt:ViewerNVWeb Box12
42   set Box12.ImagePath "imagesTMP/hola.nii"
43
44 new wt:Slider Box15
45   set Box15.In "1250"
46   set Box15.Max "1500"
47   set Box15.Min "0"
48   set Box15.ReactiveOnTrack "true"
49   set Box15.Title "LowerThreshold"
50
51 new wt:Slider Box16
52   set Box16.In "1500"
53   set Box16.Max "4000"
54   set Box16.Min "1500"
55   set Box16.ReactiveOnTrack "true"
56   set Box16.Title "UpperThresHold"
57
58 new wt:LayoutLine Box17
59
60 new wt:CommandButton Box21
61   set Box21.Label "Segmentation"
62
63 new vtk:ImageGaussianSmooth Box29
64   set Box29.StdDevX "0"
65   set Box29.StdDevY "0"
66   set Box29.StdDevZ "0"
67
68 new wt:Slider Box31
69   set Box31.In "1"
70   set Box31.Max "4"
71   set Box31.Min "0"
72   set Box31.ReactiveOnTrack "true"
73   set Box31.Title "Smooth"
74
75 new wt:AddMeshB Box37
76
77 new wt:configServerWT Box38
78   set Box38.DocRoot "/var/www/testwtdbg/docroot/appli1/"
79   set Box38.Port "8082"
80
81 new wt:ImageWriteB Box39
82
83 new wt:LayoutSplit Box40
84   set Box40.Orientation "h"
85
86 new wt:OutputText Box25
87   set Box25.In "ALT-left to refresh screen"
88
89
90 connect Box00.Out Box02.In
91
92 connect Box02.Out Box06.In
93
94 connect Box06.Out Box09.In
95
96 connect Box15.Out Box02.LowerThreshold
97
98 connect Box16.Out Box02.UpperThreshold
99
100 connect Box15.Widget Box17.Widget2
101
102 connect Box16.Widget Box17.Widget3
103
104 connect Box21.Widget Box17.Widget5
105
106 connect Box09.Out Box29.In
107
108 connect Box31.Widget Box17.Widget1
109
110 connect Box31.Out Box29.StdDevX
111
112 connect Box31.Out Box29.StdDevY
113
114 connect Box31.Out Box29.StdDevZ
115
116 connect Box29.Out Box05.In
117
118 connect Box05.Out Box37.vtkPolyData
119
120 connect Box12.Viewer1 Box37.viewerwt
121
122 connect Box00.Out Box39.Image
123
124 connect Box17.Widget Box40.Widget1
125
126 connect Box12.Widget Box40.Widget2
127
128 connect Box21.BoxChange Box37.boxExecute
129
130 connect Box39.FileName Box12.ImagePath
131
132 connect Box25.Widget Box17.Widget6
133
134
135
136 # Complex input ports
137 exec Box06
138 exec Box38
139 exec Box39
140 exec Box40