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 # ----------------------------------
7 # ----------------------
12 include creaMaracasVisu
19 description "Description ??"
22 new ResampleImageFilter Box02
23 set Box02.Spacing "0.097 0.097 0.097"
27 new CommandButton Box04
28 set Box04.Label "Write mhd image"
31 set Box05.Proportion 15
35 new FileSelector Box07
36 set Box07.OpenSave Save
38 new ImagePropertiesWidget Box08
40 new CommandButton Box09
41 set Box09.Label "Run resampling"
44 set Box11.Orientation H
45 set Box11.Proportion 85
48 set Box12.Proportion 80
51 set Box13.Orientation V
55 set Box14.Title "NewSpacing X"
59 set Box16.Title "NewSpacing Y"
63 set Box17.Title "NewSpacing Z"
65 new ConcatStrings Box18
73 set Box19.In2 NearestNeighbor
74 set Box19.Title Interpolation
76 new StringSelect Box20
79 set Box20.In3 NearestNeighbor
81 new ImagesChooserDialogBox Box21
84 set Box22.Proportion 20
87 set Box23.nTypeView "0"
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