]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/resampling.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / resampling.bbs
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
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
8 #
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.
15 #
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
20 #  liability.
21 #
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 # ------------------------------------------------------------------------ */
25
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 # ----------------------------------
30
31 # BBTK GEditor Script
32 # ----------------------
33
34 include std
35 include itkvtk
36 include itk
37 include creaMaracasVisu
38 include wx
39 include std
40 include creaImageIO
41 include toolsbbtk
42
43 author "Author ??"
44 description "Description ??"
45 category "<VOID>"
46
47 new ResampleImageFilter Box02
48   set Box02.Spacing "0.097 0.097 0.097"
49
50 new ViewerNV Box03
51
52 new CommandButton Box04
53   set Box04.Label "Write mhd image"
54
55 new LayoutSplit Box05
56   set Box05.Proportion 15
57
58 new ImageWriter Box06
59
60 new FileSelector Box07
61   set Box07.OpenSave Save
62
63 new CommandButton Box09
64   set Box09.Label "Run resampling"
65
66 new LayoutSplit Box11
67   set Box11.Orientation H
68   set Box11.Proportion 75
69
70 new LayoutLine Box13
71   set Box13.Orientation V
72
73 new InputText Box14
74   set Box14.In "1 1 1"
75   set Box14.Title "NewSpacing"
76
77 new RadioButton Box19
78   set Box19.In 0
79   set Box19.In0 Linear
80   set Box19.In1 BSpline
81   set Box19.In2 NearestNeighbor
82   set Box19.Title Interpolation
83
84 new StringSelect Box20
85   set Box20.In1 Linear
86   set Box20.In2 BSpline
87   set Box20.In3 NearestNeighbor
88
89 new ImagesChooserDialogBox Box21
90
91 new LayoutSplit Box22
92   set Box22.Proportion 20
93
94 new ViewerNV Box23
95   set Box23.nTypeView "0"
96
97 new ImageVtkPropertiesWidget Box24
98
99
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
121
122 exec Box11