]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/resampling.bbs
c54cec68179f205362174c51b0a8a7de9663cda7
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / resampling.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/resampling.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include itk
12 include creaMaracasVisu
13 include wx
14 include std
15 include creaImageIO
16 include toolsbbtk
17
18 author "Author ??"
19 description "Description ??"
20 category "<VOID>"
21
22 new itk:ResampleImageFilter Box02
23   set Box02.Spacing "0.097 0.097 0.097"
24
25 new creaMaracasVisu:ViewerNV Box03
26
27 new wx:CommandButton Box04
28   set Box04.Label "Write mhd image"
29
30 new wx:LayoutSplit Box05
31   set Box05.Proportion 15
32
33 new itk:ImageWriter Box06
34
35 new wx:FileSelector Box07
36   set Box07.OpenSave Save
37
38 new wx:CommandButton Box09
39   set Box09.Label "Run resampling"
40
41 new wx:LayoutSplit Box11
42   set Box11.Orientation H
43   set Box11.Proportion 75
44
45 new wx:LayoutLine Box13
46   set Box13.Orientation V
47
48 new wx:InputText Box14
49   set Box14.In "1 1 1"
50   set Box14.Title "NewSpacing"
51
52 new wx:RadioButton Box19
53   set Box19.In 0
54   set Box19.In0 Linear
55   set Box19.In1 BSpline
56   set Box19.In2 NearestNeighbor
57   set Box19.Title Interpolation
58
59 new std:StringSelect Box20
60   set Box20.In0 "Linear"
61   set Box20.In1 "BSpline"
62   set Box20.In2 "NearestNeighbor"
63
64 new creaImageIO:ImagesChooserDialogBox Box21
65
66 new wx:LayoutSplit Box22
67   set Box22.Proportion 20
68
69 new creaMaracasVisu:ViewerNV Box23
70   set Box23.nTypeView "0"
71
72 new toolsbbtk:ImageVtkPropertiesWidget Box24
73
74
75 connect Box02.Out Box03.In
76
77 connect Box03.Widget Box05.Widget2
78
79 connect Box04.Widget Box05.Widget1
80
81 connect Box07.Out Box06.Filename
82
83 connect Box02.Out Box06.In
84
85 connect Box04.BoxChange Box06.BoxExecute
86
87 connect Box14.Widget Box13.Widget1
88
89 connect Box13.Widget Box11.Widget2
90
91 connect Box19.Out Box20.In
92
93 connect Box19.Widget Box13.Widget4
94
95 connect Box20.Out Box02.Interpolation
96
97 connect Box09.BoxChange Box05.BoxExecute
98
99 connect Box21.Out Box02.In
100
101 connect Box23.Widget Box22.Widget2
102
103 connect Box21.Out Box23.In
104
105 connect Box22.Widget Box11.Widget1
106
107 connect Box21.Out Box24.in
108
109 connect Box24.widget Box22.Widget1
110
111 connect Box14.Out Box02.Spacing
112
113 connect Box24.Spacing Box14.In
114
115 connect Box09.Widget Box13.Widget5
116
117 connect Box21.FileName Box24.FileName
118
119
120
121 # Complex input ports
122 exec Box11