]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/resampling.bbs
a1626885baa69e4f64ce16dafca733d0537ff62d
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / resampling.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script
3 # - /Users/davila/Creatis/All3/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 creaMiniTools
15 include std
16 include creaImageIO
17
18 author "Author ??"
19 description "Description ??"
20 category "<VOID>"
21
22 new ResampleImageFilter Box02
23   set Box02.Spacing "0.097 0.097 0.097"
24
25 new ViewerNV Box03
26
27 new CommandButton Box04
28   set Box04.Label "Write mhd image"
29
30 new LayoutSplit Box05
31   set Box05.Proportion 15
32
33 new ImageWriter Box06
34
35 new FileSelector Box07
36   set Box07.OpenSave Save
37
38 new ImagePropertiesWidget Box08
39
40 new CommandButton Box09
41   set Box09.Label "Run resampling"
42
43 new LayoutSplit Box11
44   set Box11.Orientation H
45   set Box11.Proportion 85
46
47 new LayoutSplit Box12
48   set Box12.Proportion 80
49
50 new LayoutLine Box13
51   set Box13.Orientation V
52
53 new InputText Box14
54   set Box14.In 1
55   set Box14.Title "NewSpacing X"
56
57 new InputText Box16
58   set Box16.In 1
59   set Box16.Title "NewSpacing Y"
60
61 new InputText Box17
62   set Box17.In 1
63   set Box17.Title "NewSpacing Z"
64
65 new ConcatStrings Box18
66   set Box18.In2 " "
67   set Box18.In4 " "
68
69 new RadioButton Box19
70   set Box19.In 0
71   set Box19.In0 Linear
72   set Box19.In1 BSpline
73   set Box19.In2 NearestNeighbor
74   set Box19.Title Interpolation
75
76 new StringSelect Box20
77   set Box20.In1 Linear
78   set Box20.In2 BSpline
79   set Box20.In3 NearestNeighbor
80
81 new ImagesChooserDialogBox Box21
82
83 new LayoutSplit Box22
84   set Box22.Proportion 20
85
86 new ViewerNV Box23
87   set Box23.nTypeView "0"
88
89
90 connect Box02.Out Box03.In
91 connect Box03.Widget Box05.Widget2
92 connect Box04.Widget Box05.Widget1
93 connect Box07.Out Box06.Filename
94 connect Box02.Out Box06.In
95 connect Box04.BoxChange Box06.BoxExecute
96 connect Box09.Widget Box12.Widget2
97 connect Box11.Widget Box12.Widget1
98 connect Box14.Widget Box13.Widget1
99 connect Box13.Widget Box11.Widget2
100 connect Box16.Widget Box13.Widget2
101 connect Box17.Widget Box13.Widget3
102 connect Box14.Out Box18.In1
103 connect Box18.Out Box02.Spacing
104 connect Box19.Out Box20.In
105 connect Box19.Widget Box13.Widget4
106 connect Box20.Out Box02.Interpolation
107 connect Box09.BoxChange Box05.BoxExecute
108 connect Box16.Out Box18.In3
109 connect Box17.Out Box18.In5
110 connect Box21.Out Box02.In
111 connect Box21.Out Box08.in
112 connect Box08.widget Box22.Widget1
113 connect Box23.Widget Box22.Widget2
114 connect Box21.Out Box23.In
115 connect Box22.Widget Box11.Widget1
116
117 exec Box12