]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
no message
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / rescaleSlopeIntercept0.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script
3 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include creaMiniTools
13 include wx
14 include itk
15 include creaMiniToolsBase
16 include std
17
18 author "Author ??"
19 description "Description ??"
20 category "<VOID>"
21
22 new RescaleSlopeIntercept Box03
23   set Box03.Type 0
24
25 new ImagePropertiesWidget Box06
26
27 new ImagePropertiesWidget Box07
28
29 new FileSelector Box10
30
31 new ImageReader Box11
32
33 new LayoutLine Box12
34
35 new InputText Box13
36   set Box13.In 0
37   set Box13.Title Slope
38
39 new InputText Box14
40   set Box14.In 1
41   set Box14.Title "Rescale"
42
43 new OutputText Box15
44   set Box15.In "NewPixel = Rescale * Pixel + Slope"
45
46 new LayoutLine Box16
47   set Box16.Orientation H
48
49 new CommandButton Box17
50   set Box17.Label "Run RescaleSlopeIntercept"
51
52 new SaveMHD-Button Box20
53
54 new RadioButton Box25
55   set Box25.In 2
56   set Box25.In0 VTK_UNSIGNED_CHAR
57   set Box25.In1 VTK_SIGNED_CHAR
58   set Box25.In2 VTK_UNSIGNED_SHORT
59   set Box25.In3 VTK_SHORT
60   set Box25.In4 VTK_UNSIGNED_INT
61   set Box25.In5 VTK_SIGNED_INT
62   set Box25.In6 VTK_UNSIGNED_LONG
63   set Box25.In7 VTK_SIGNED_LONG
64   set Box25.In8 VTK_FLOAT
65   set Box25.In9 VTK_DOUBLE
66   set Box25.Title "Output Data Format"
67
68 new StringSelect Box26
69   set Box26.In0 "VTK_UNSIGNED_CHAR"
70   set Box26.In1 "VTK_SIGNED_CHAR"
71   set Box26.In2 "VTK_UNSIGNED_SHORT"
72   set Box26.In3 "VTK_SIGNED_SHORT"
73   set Box26.In4 "VTK_UNSIGNED_INT"
74   set Box26.In5 "VTK_SIGNED_INT"
75   set Box26.In6 "VTK_UNSIGNED_LONG"
76   set Box26.In7 "VTK_SIGNED_LONG"
77   set Box26.In8 "VTK_FLOAT"
78   set Box26.In9 "VTK_DOUBLE"
79
80 new LayoutSplit Box27
81   set Box27.Proportion 15
82   set Box27.WinHeight 300
83   set Box27.WinWidth 300
84
85 new LayoutSplit Box33
86   set Box33.Proportion 90
87
88 new LayoutSplit Box34
89
90
91 connect Box03.Out Box07.in
92 connect Box10.Out Box11.In
93 connect Box15.Widget Box12.Widget1
94 connect Box06.widget Box16.Widget1
95 connect Box03.Out Box20.In
96 connect Box26.Out Box03.OutputFormat
97 connect Box25.Out Box26.In
98 connect Box14.Out Box03.A
99 connect Box13.Out Box03.B
100 connect Box07.widget Box27.Widget2
101 connect Box20.Widget Box27.Widget1
102 connect Box14.Widget Box12.Widget2
103 connect Box13.Widget Box12.Widget3
104 connect Box11.Out Box03.In
105 connect Box17.BoxChange Box27.BoxExecute
106 connect Box11.Out Box06.in
107 connect Box17.Widget Box33.Widget2
108 connect Box16.Widget Box33.Widget1
109 connect Box25.Widget Box34.Widget2
110 connect Box12.Widget Box34.Widget1
111 connect Box34.Widget Box16.Widget2
112
113 exec Box33