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