MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guia do Utilizador Página 62: Storing Adaptor Data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
3
Providing Hardware Information
3-18
The demo adaptor provides an example, defining a class to hold additional format
information. This class, named
DemoDeviceFormat
, stores format information
such as width, height, and color space. The following example, taken from the demo
adaptor, shows how to instantiate an object of this derived class, assign values to
the data members of the class, and then store the object in the adaptor data of the
IDeviceFormat
object.
DemoDeviceFormat* rgbFormatInfo = new DemoDeviceFormat();
rgbFormatInfo->setFormatWidth(demo::RGB_FORMAT_WIDTH);
rgbFormatInfo->setFormatHeight(demo::RGB_FORMAT_HEIGHT);
rgbFormatInfo->setFormatNumBands(demo::RGB_FORMAT_BANDS);
rgbFormatInfo->setFormatColorSpace(imaqkit::colorspaces::RGB);
deviceFormat->setAdaptorData(rgbFormatInfo);
Accessing Adaptor Data
To access the adaptor data stored in an
IDeviceInfo
or
IDeviceFormat
object, use the
getAdaptorData()
member function of the object.
The following example, taken from the demo adaptor, shows how to retrieve the
adaptor data from the
IDeviceFormat
object. In the example,
selectedFormat
is a
DemoDeviceFormat
object. Note that because the
getAdaptorData()
member function
returns a handle to the
IMAQInterface
class, you must cast the returned object to your
defined class.
dynamic_cast<DemoDeviceFormat*>(selectedFormat->getAdaptorData());
Ficheiro PDF · ·
Perguntas sobre MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES
Ainda não há perguntas sobre este manual. Faça a primeira.
Manuais e produtos relacionados com Software MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES
- Software MATLAB SIMULINK 3D ANIMATION - S Guia do Utilizador
(490 páginas) - Software MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guia do Utilizador
(986 páginas) - Software MATLAB VIDEO AND IMAGE PROCESSING BLOCKSET 3 Guia do Utilizador
(59 páginas) - Software MATLAB PARALLEL COMPUTING TOOLBOX - S Guia do Utilizador
(656 páginas) - Software MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guia do Utilizador
(112 páginas) - Software MATLAB DO QUALIFICATION RELEASE NOTES Manual do Utilizador
(15 páginas) - Software MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guia de Instalação
(86 páginas) - Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual do Utilizador
(330 páginas) - Software MATLAB CONTROL SYSTEM TOOLBOX 9 Guia do Utilizador
(649 páginas) - Software MATLAB FINANCIAL DERIVATIVES TOOLBOX Manual do Utilizador
(119 páginas) - Software MATLAB SIMEVENTS RELEASE NOTES Guia do Utilizador
(114 páginas) - Software MATLAB SIGNAL PROCESSING TOOLBOX 6 Manual do Utilizador
(60 páginas) - Software MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guia do Utilizador
(674 páginas) - Software MATLAB IMAGE PROCESSING TOOLBOX - RELEASE NOTES Guia do Utilizador
(122 páginas) - Software MATLAB SYSTEM IDENTIFICATION TOOLBOX 7 Guia do Utilizador
(531 páginas) - Software MATLAB DATABASE TOOLBOX RELEASE NOTES Guia do Utilizador
(298 páginas) - Software MATLAB DESIGN HDL CODER RELEASE NOTES Guia do Utilizador
(410 páginas) - Software MATLAB POLYSPACE 7 Guia de Instalação
(618 páginas) - Software MATLAB PARALLEL COMPUTING TOOLBOX 4 Guia do Utilizador
(128 páginas) - Software MATLAB DATABASE TOOLBOX RELEASE NOTES Guia do Utilizador
(684 páginas)