]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs
#3002 CreaMiniTools Feature New Normal - GaussianSmoothing minitool
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / GaussianSmoothing.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include creaMaracasVisu
13 include wx
14 include toolsbbtk
15 include creaImageIO
16 include creaVtk
17
18 author "Author ??"
19 description "Description ??"
20 category "<VOID>"
21
22 new vtk:LoadHola Box00
23
24 new creaMaracasVisu:ViewerNV Box01
25
26 new vtk:ImageGaussianSmooth Box02
27
28 new vtk:vtkImageDataPointerRelay Box03
29
30 new creaMaracasVisu:ViewerNV Box05
31   set Box05.WinTitle "dddd"
32
33 new wx:LayoutLine Box07
34
35 new wx:InputText Box08
36   set Box08.In "0.0"
37   set Box08.Title "StdDevX"
38
39 new wx:InputText Box09
40   set Box09.In "0.0"
41   set Box09.Title "StdDevY"
42
43 new wx:InputText Box10
44   set Box10.In "0.0"
45   set Box10.Title "StdDevZ"
46
47 new wx:LayoutLine Box11
48   set Box11.Orientation "V"
49
50 new wx:CommandButton Box12
51   set Box12.Label "Refresh"
52
53 new toolsbbtk:SaveMHD-Button Box14
54
55 new wx:LayoutTab Box15
56
57 new wx:LayoutLine Box16
58   set Box16.WinTitle "Image"
59
60 new wx:LayoutLine Box17
61   set Box17.WinTitle "Image"
62
63 new toolsbbtk:ImageVtkPropertiesWidget Box19
64
65 new wx:LayoutTab Box20
66   set Box20.WinTitle "Smooth"
67
68 new wx:LayoutTab Box21
69   set Box21.WinTitle "Original"
70
71 new wx:LayoutLine Box22
72   set Box22.WinTitle "Info"
73
74 new toolsbbtk:ImageVtkPropertiesWidget Box23
75
76 new wx:LayoutLine Box24
77   set Box24.WinTitle "Info"
78
79 new creaImageIO:ImagesChooserDialogBox Box25
80
81 new creaVtk:OutputWindow Box26
82
83 new wx:LayoutSplit Box27
84   set Box27.Orientation "H"
85   set Box27.Proportion "20"
86
87
88 connect Box03.Out Box01.In
89
90 connect Box03.Out Box02.In
91
92 connect Box02.Out Box05.In
93
94 connect Box08.Widget Box11.Widget1
95
96 connect Box09.Widget Box11.Widget2
97
98 connect Box10.Widget Box11.Widget3
99
100 connect Box12.Widget Box07.Widget2
101
102 connect Box11.Widget Box07.Widget1
103
104 connect Box14.Widget Box07.Widget3
105
106 connect Box05.Widget Box17.Widget1
107
108 connect Box01.Widget Box16.Widget1
109
110 connect Box08.Out Box02.StdDevX
111
112 connect Box09.Out Box02.StdDevY
113
114 connect Box10.Out Box02.StdDevZ
115
116 connect Box12.BoxChange Box17.BoxExecute
117
118 connect Box02.Out Box14.In
119
120 connect Box02.Out Box19.in
121
122 connect Box12.BoxChange Box19.boxExecute
123
124 connect Box20.Widget Box15.Widget1
125
126 connect Box21.Widget Box15.Widget2
127
128 connect Box19.widget Box22.Widget1
129
130 connect Box23.widget Box24.Widget1
131
132 connect Box17.Widget Box20.Widget1
133
134 connect Box22.Widget Box20.Widget2
135
136 connect Box16.Widget Box21.Widget1
137
138 connect Box24.Widget Box21.Widget2
139
140 connect Box25.Out Box03.In
141
142 connect Box03.Out Box23.in
143
144 connect Box25.FileName Box23.FileName
145
146 connect Box15.Widget Box27.Widget2
147
148 connect Box07.Widget Box27.Widget1
149
150
151
152 # Complex input ports
153 exec Box26
154 exec Box27