1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/resampling.bbs
4 # ----------------------------------
7 # ----------------------
12 include creaMaracasVisu
20 description "Description ??"
23 new itk:ResampleImageFilter Box02
24 set Box02.Spacing "0.097 0.097 0.097"
26 new creaMaracasVisu:ViewerNV Box03
28 new wx:CommandButton Box04
29 set Box04.Label "Write mhd image"
31 new wx:LayoutSplit Box05
32 set Box05.Proportion 15
34 new itk:ImageWriter Box06
36 new wx:FileSelector Box07
37 set Box07.OpenSave Save
39 new wx:CommandButton Box09
40 set Box09.Label "Run resampling"
42 new wx:LayoutLine Box13
43 set Box13.Orientation V
45 new wx:InputText Box14
47 set Box14.Title "NewSpacing"
49 new wx:RadioButton Box19
53 set Box19.In2 NearestNeighbor
54 set Box19.Title Interpolation
56 new std:StringSelect Box20
57 set Box20.In0 "Linear"
58 set Box20.In1 "BSpline"
59 set Box20.In2 "NearestNeighbor"
61 new creaImageIO:ImagesChooserDialogBox Box21
63 new wx:LayoutSplit Box22
64 set Box22.Proportion 20
66 new creaMaracasVisu:ViewerNV Box23
67 set Box23.nTypeView "0"
69 new toolsbbtk:ImageVtkPropertiesWidget Box24
71 new creaVtk:OutputWindow Box25
73 new wx:LayoutSplit Box26
74 set Box26.Orientation H
75 set Box26.Proportion 75
78 connect Box02.Out Box03.In
80 connect Box03.Widget Box05.Widget2
82 connect Box04.Widget Box05.Widget1
84 connect Box07.Out Box06.Filename
86 connect Box02.Out Box06.In
88 connect Box04.BoxChange Box06.BoxExecute
90 connect Box14.Widget Box13.Widget1
92 connect Box19.Out Box20.In
94 connect Box19.Widget Box13.Widget4
96 connect Box20.Out Box02.Interpolation
98 connect Box09.BoxChange Box05.BoxExecute
100 connect Box21.Out Box02.In
102 connect Box23.Widget Box22.Widget2
104 connect Box21.Out Box23.In
106 connect Box21.Out Box24.in
108 connect Box24.widget Box22.Widget1
110 connect Box14.Out Box02.Spacing
112 connect Box24.Spacing Box14.In
114 connect Box09.Widget Box13.Widget5
116 connect Box21.FileName Box24.FileName
118 connect Box22.Widget Box26.Widget1
120 connect Box13.Widget Box26.Widget2
124 # Complex input ports