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 CommandButton Box09
39 set Box09.Label "Run resampling"
42 set Box11.Orientation H
43 set Box11.Proportion 75
46 set Box13.Orientation V
50 set Box14.Title "NewSpacing"
56 set Box19.In2 NearestNeighbor
57 set Box19.Title Interpolation
59 new StringSelect Box20
62 set Box20.In3 NearestNeighbor
64 new ImagesChooserDialogBox Box21
67 set Box22.Proportion 20
70 set Box23.nTypeView "0"
72 new ImageVtkPropertiesWidget Box24
75 connect Box02.Out Box03.In
76 connect Box03.Widget Box05.Widget2
77 connect Box04.Widget Box05.Widget1
78 connect Box07.Out Box06.Filename
79 connect Box02.Out Box06.In
80 connect Box04.BoxChange Box06.BoxExecute
81 connect Box14.Widget Box13.Widget1
82 connect Box13.Widget Box11.Widget2
83 connect Box19.Out Box20.In
84 connect Box19.Widget Box13.Widget4
85 connect Box20.Out Box02.Interpolation
86 connect Box09.BoxChange Box05.BoxExecute
87 connect Box21.Out Box02.In
88 connect Box23.Widget Box22.Widget2
89 connect Box21.Out Box23.In
90 connect Box22.Widget Box11.Widget1
91 connect Box21.Out Box24.in
92 connect Box24.widget Box22.Widget1
93 connect Box14.Out Box02.Spacing
94 connect Box24.Spacing Box14.In
95 connect Box09.Widget Box13.Widget5