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
19 description "Description ??"
22 new itk:ResampleImageFilter Box02
23 set Box02.Spacing "0.097 0.097 0.097"
25 new creaMaracasVisu:ViewerNV Box03
27 new wx:CommandButton Box04
28 set Box04.Label "Write mhd image"
30 new wx:LayoutSplit Box05
31 set Box05.Proportion 15
33 new itk:ImageWriter Box06
35 new wx:FileSelector Box07
36 set Box07.OpenSave Save
38 new wx:CommandButton Box09
39 set Box09.Label "Run resampling"
41 new wx:LayoutSplit Box11
42 set Box11.Orientation H
43 set Box11.Proportion 75
45 new wx:LayoutLine Box13
46 set Box13.Orientation V
48 new wx:InputText Box14
50 set Box14.Title "NewSpacing"
52 new wx:RadioButton Box19
56 set Box19.In2 NearestNeighbor
57 set Box19.Title Interpolation
59 new std:StringSelect Box20
60 set Box20.In0 "Linear"
61 set Box20.In1 "BSpline"
62 set Box20.In2 "NearestNeighbor"
64 new creaImageIO:ImagesChooserDialogBox Box21
66 new wx:LayoutSplit Box22
67 set Box22.Proportion 20
69 new creaMaracasVisu:ViewerNV Box23
70 set Box23.nTypeView "0"
72 new toolsbbtk:ImageVtkPropertiesWidget Box24
75 connect Box02.Out Box03.In
77 connect Box03.Widget Box05.Widget2
79 connect Box04.Widget Box05.Widget1
81 connect Box07.Out Box06.Filename
83 connect Box02.Out Box06.In
85 connect Box04.BoxChange Box06.BoxExecute
87 connect Box14.Widget Box13.Widget1
89 connect Box13.Widget Box11.Widget2
91 connect Box19.Out Box20.In
93 connect Box19.Widget Box13.Widget4
95 connect Box20.Out Box02.Interpolation
97 connect Box09.BoxChange Box05.BoxExecute
99 connect Box21.Out Box02.In
101 connect Box23.Widget Box22.Widget2
103 connect Box21.Out Box23.In
105 connect Box22.Widget Box11.Widget1
107 connect Box21.Out Box24.in
109 connect Box24.widget Box22.Widget1
111 connect Box14.Out Box02.Spacing
113 connect Box24.Spacing Box14.In
115 connect Box09.Widget Box13.Widget5
117 connect Box21.FileName Box24.FileName
121 # Complex input ports