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/rescaleSlopeIntercept0.bbs
29 # ----------------------------------
32 # ----------------------
40 include creaMiniToolsBase
45 description "Description ??"
48 new RescaleSlopeIntercept Box03
51 new ImagePropertiesWidget Box06
53 new ImagePropertiesWidget Box07
55 new FileSelector Box10
67 set Box14.Title "Rescale"
70 set Box15.In "NewPixel = Rescale * Pixel + Slope"
73 set Box16.Orientation H
75 new CommandButton Box17
76 set Box17.Label "Run RescaleSlopeIntercept"
78 new SaveMHD-Button Box20
82 set Box25.In0 VTK_UNSIGNED_CHAR
83 set Box25.In1 VTK_SIGNED_CHAR
84 set Box25.In2 VTK_UNSIGNED_SHORT
85 set Box25.In3 VTK_SHORT
86 set Box25.In4 VTK_UNSIGNED_INT
87 set Box25.In5 VTK_SIGNED_INT
88 set Box25.In6 VTK_UNSIGNED_LONG
89 set Box25.In7 VTK_SIGNED_LONG
90 set Box25.In8 VTK_FLOAT
91 set Box25.In9 VTK_DOUBLE
92 set Box25.Title "Output Data Format"
94 new StringSelect Box26
95 set Box26.In0 "VTK_UNSIGNED_CHAR"
96 set Box26.In1 "VTK_SIGNED_CHAR"
97 set Box26.In2 "VTK_UNSIGNED_SHORT"
98 set Box26.In3 "VTK_SIGNED_SHORT"
99 set Box26.In4 "VTK_UNSIGNED_INT"
100 set Box26.In5 "VTK_SIGNED_INT"
101 set Box26.In6 "VTK_UNSIGNED_LONG"
102 set Box26.In7 "VTK_SIGNED_LONG"
103 set Box26.In8 "VTK_FLOAT"
104 set Box26.In9 "VTK_DOUBLE"
106 new LayoutSplit Box27
107 set Box27.Proportion 15
108 set Box27.WinHeight 300
109 set Box27.WinWidth 300
111 new LayoutSplit Box33
112 set Box33.Proportion 90
114 new LayoutSplit Box34
117 connect Box03.Out Box07.in
118 connect Box10.Out Box11.In
119 connect Box15.Widget Box12.Widget1
120 connect Box06.widget Box16.Widget1
121 connect Box03.Out Box20.In
122 connect Box26.Out Box03.OutputFormat
123 connect Box25.Out Box26.In
124 connect Box14.Out Box03.A
125 connect Box13.Out Box03.B
126 connect Box07.widget Box27.Widget2
127 connect Box20.Widget Box27.Widget1
128 connect Box14.Widget Box12.Widget2
129 connect Box13.Widget Box12.Widget3
130 connect Box11.Out Box03.In
131 connect Box17.BoxChange Box27.BoxExecute
132 connect Box11.Out Box06.in
133 connect Box17.Widget Box33.Widget2
134 connect Box16.Widget Box33.Widget1
135 connect Box25.Widget Box34.Widget2
136 connect Box12.Widget Box34.Widget1
137 connect Box34.Widget Box16.Widget2