]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / rescaleSlopeIntercept0.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/rescaleSlopeIntercept0.bbs
29 # ----------------------------------
30
31 # BBTK GEditor Script
32 # ----------------------
33
34 include std
35 include itkvtk
36 include vtk
37 include creaMiniTools
38 include wx
39 include itk
40 include creaMiniToolsBase
41 include toolsbbtk
42 include std
43
44 author "Author ??"
45 description "Description ??"
46 category "<VOID>"
47
48 new RescaleSlopeIntercept Box03
49   set Box03.Type 0
50
51 new ImagePropertiesWidget Box06
52
53 new ImagePropertiesWidget Box07
54
55 new FileSelector Box10
56
57 new ImageReader Box11
58
59 new LayoutLine Box12
60
61 new InputText Box13
62   set Box13.In 0
63   set Box13.Title Slope
64
65 new InputText Box14
66   set Box14.In 1
67   set Box14.Title "Rescale"
68
69 new OutputText Box15
70   set Box15.In "NewPixel = Rescale * Pixel + Slope"
71
72 new LayoutLine Box16
73   set Box16.Orientation H
74
75 new CommandButton Box17
76   set Box17.Label "Run RescaleSlopeIntercept"
77
78 new SaveMHD-Button Box20
79
80 new RadioButton Box25
81   set Box25.In 2
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"
93
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"
105
106 new LayoutSplit Box27
107   set Box27.Proportion 15
108   set Box27.WinHeight 300
109   set Box27.WinWidth 300
110
111 new LayoutSplit Box33
112   set Box33.Proportion 90
113
114 new LayoutSplit Box34
115
116
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
138
139 exec Box33