1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
26 # ----------------------------------
27 # - BBTKGEditor v 1.2 BBS BlackBox Script
28 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/resampling.bbs
29 # ----------------------------------
32 # ----------------------
37 include creaMaracasVisu
44 description "Description ??"
47 new ResampleImageFilter Box02
48 set Box02.Spacing "0.097 0.097 0.097"
52 new CommandButton Box04
53 set Box04.Label "Write mhd image"
56 set Box05.Proportion 15
60 new FileSelector Box07
61 set Box07.OpenSave Save
63 new CommandButton Box09
64 set Box09.Label "Run resampling"
67 set Box11.Orientation H
68 set Box11.Proportion 75
71 set Box13.Orientation V
75 set Box14.Title "NewSpacing"
81 set Box19.In2 NearestNeighbor
82 set Box19.Title Interpolation
84 new StringSelect Box20
87 set Box20.In3 NearestNeighbor
89 new ImagesChooserDialogBox Box21
92 set Box22.Proportion 20
95 set Box23.nTypeView "0"
97 new ImageVtkPropertiesWidget Box24
100 connect Box02.Out Box03.In
101 connect Box03.Widget Box05.Widget2
102 connect Box04.Widget Box05.Widget1
103 connect Box07.Out Box06.Filename
104 connect Box02.Out Box06.In
105 connect Box04.BoxChange Box06.BoxExecute
106 connect Box14.Widget Box13.Widget1
107 connect Box13.Widget Box11.Widget2
108 connect Box19.Out Box20.In
109 connect Box19.Widget Box13.Widget4
110 connect Box20.Out Box02.Interpolation
111 connect Box09.BoxChange Box05.BoxExecute
112 connect Box21.Out Box02.In
113 connect Box23.Widget Box22.Widget2
114 connect Box21.Out Box23.In
115 connect Box22.Widget Box11.Widget1
116 connect Box21.Out Box24.in
117 connect Box24.widget Box22.Widget1
118 connect Box14.Out Box02.Spacing
119 connect Box24.Spacing Box14.In
120 connect Box09.Widget Box13.Widget5