]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/boxes/CompareImagesByRGB-Widget.bbs
CompareImages
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / boxes / CompareImagesByRGB-Widget.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/CompareImagesByRGB-Widget.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include creaMaracasVisu
9 include creaVtk
10 include vtk
11 include wx
12 include std
13
14 define CompareImagesByRGB-Widget creaVtk
15
16 author "Author ??"
17 description "Description ??"
18
19 category "<VOID>"
20
21 new creaMaracasVisu:ViewerNV Box00
22   set Box00.nTypeView "1  2 0"
23
24 new creaVtk:ImageAppendComponents Box02
25
26 new vtk:RescaleSlopeIntercept Box05
27   set Box05.A "0"
28   set Box05.B "255"
29   set Box05.OutputFormat "VTK_UNSIGNED_CHAR"
30   set Box05.Type "2"
31
32 new creaMaracasVisu:SetwxVtkBaseViewLookupTable Box06
33
34 new wx:LayoutSplit Box07
35   set Box07.Proportion "90"
36
37 new creaVtk:ScalarsToColors Box10
38   set Box10.Type "3"
39
40 new vtk:RescaleSlopeIntercept Box13
41   set Box13.A "0"
42   set Box13.B "255"
43   set Box13.OutputFormat "VTK_UNSIGNED_CHAR"
44   set Box13.Type "2"
45
46 new std:StringSelect Box18
47   set Box18.In0 "1 1 1"
48   set Box18.In1 "0 0 0"
49   set Box18.In2 "1 0 0"
50   set Box18.In3 "0 1 0"
51   set Box18.In4 "0 0 1"
52   set Box18.In5 "1 1 0"
53   set Box18.In6 "1 0 1"
54   set Box18.In7 "0 1 1"
55
56 new vtk:AddImageToVector Box19
57
58 new std:GetVectorStringElement Box20
59   set Box20.I "0"
60
61 new std:GetVectorStringElement Box21
62   set Box21.I "1"
63
64 new std:GetVectorStringElement Box22
65   set Box22.I "2"
66
67 new vtk:GetVectorVtkImageDataElement Box23
68
69 new vtk:GetVectorVtkImageDataElement Box24
70
71 new vtk:GetVectorVtkImageDataElement Box25
72
73 new wx:Slider Box26
74   set Box26.Max "7"
75   set Box26.Min "0"
76   set Box26.ReactiveOnTrack "true"
77
78 new vtk:vtkImageDataPointerRelay Box29
79
80 new vtk:vtkImageDataPointerRelay Box30
81
82 new wx:LayoutLine Box31
83   set Box31.Orientation "H"
84
85 new wx:CheckBox Box32
86   set Box32.Title "Interpolation"
87
88 new std:MagicBox Box33
89
90 new std:MultipleInputs Box34
91
92 new std:MagicBox Box35
93
94 new creaMaracasVisu:SetPosition Box36
95
96
97 connect Box02.Out Box00.In
98 connect Box10.LookupTable Box06.ScalarToColors
99 connect Box05.Out Box19.In0
100 connect Box13.Out Box19.In1
101 connect Box18.Out Box20.In
102 connect Box18.Out Box21.In
103 connect Box18.Out Box22.In
104 connect Box19.Out Box23.In
105 connect Box20.Out Box23.I
106 connect Box19.Out Box24.In
107 connect Box19.Out Box25.In
108 connect Box21.Out Box24.I
109 connect Box22.Out Box25.I
110 connect Box23.Out Box02.In0
111 connect Box24.Out Box02.In1
112 connect Box25.Out Box02.In2
113 connect Box26.Out Box18.In
114 connect Box00.wxVtkBaseView1 Box06.BaseView1
115 connect Box00.wxVtkBaseView2 Box06.BaseView2
116 connect Box00.wxVtkBaseView3 Box06.BaseView3
117 connect Box29.Out Box05.In
118 connect Box30.Out Box13.In
119 connect Box26.Widget Box31.Widget1
120 connect Box32.Widget Box31.Widget2
121 connect Box32.Out Box00.Interpolate
122 connect Box32.BoxChange Box00.BoxExecute
123 connect Box00.Widget Box07.Widget1
124 connect Box31.Widget Box07.Widget2
125 connect Box26.BoxChange Box34.In1
126 connect Box34.BoxChange Box06.BoxExecute
127 connect Box33.BoxChange Box34.In2
128 connect Box00.wxVtkBaseView1 Box36.wxVtkBaseView
129 connect Box35.Out Box36.Point
130 connect Box33.BoxChange Box36.BoxExecute
131
132 # Complex input ports
133 input Image1 Box29.In " "
134 input Image2 Box30.In " "
135 input boxExecute Box33.BoxExecute " "
136 input point Box35.In " "
137
138 # Complex output ports
139 output OutWidget Box07.Widget " "
140
141
142 endefine