MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Podręcznik Użytkownika Strona 213

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 212
Working with Image Data in MATLAB Workspace
7-15
7
Clean up — Always remove image acquisition objects from memory, and the
variables that reference them, when you no longer need them.
delete(vid)
clear vid
Determining the Data Type of Image Frames
By default, the toolbox returns image frames in the data type used by the image
acquisition device. If there is no MATLAB data type that matches the object's native
data type, getdata chooses a MATLAB data type that preserves numerical accuracy.
For example, in RGB 555 format, each color component is expressed in 5-bits. getdata
returns each color as a uint8 value.
You can specify the data type you want getdata to use for the returned data. For
example, you can specify that getdata return image frames as an array of class double.
To see a list of all the data types supported, see the getdata reference page.
The following example illustrates the data type of returned image data.
1
Create an image acquisition object — This example creates a video input object
for a Matrox image acquisition device. To run this example on your system, use the
imaqhwinfo function to get the object constructor for your image acquisition device
and substitute that syntax for the following code.
vid = videoinput('matrox',1);
2
Bring a single frame into the workspace — Call the getsnapshot function to
bring a frame into the workspace.
frame = getsnapshot(vid);
3
View the class of the returned data — Use the class function to determine the
data type used for the returned image data.
class(frame)
ans =
uint8
4
Clean up — Always remove image acquisition objects from memory, and the
variables that reference them, when you no longer need them.
delete(vid)
Przeglądanie stron 212
1 2 ... 208 209 210 211 212 213 214 215 216 217 218 ... 573 574

Komentarze do niniejszej Instrukcji

Brak uwag

Atlona Amplificadores de audio manuales de usuario

Empezando en A

Haga clic en el alfabeto a continuación para desplazarse a la lista completa de modelos que comienzan con esa letra

Modelos Tipo de documento
AT-3GSDI-14
Manual de usuario   Residential - AVPro Alliance, 96 paginas
AT-DVI-14A
Manual de usuario   Atlona AT-DVI-14A User manual, 20 paginas
AT-HD-V112
Manual de usuario   Product Catalog, 60 paginas
Manual de usuario   Atlona AT-HD-V112 User manual, 7 paginas
AT-HD-V116
Manual de usuario   AtlonA - BZB Express, 9 paginas
AT-HD-V18
Manual de usuario   Atlona AT-HD-V18 User manual, 7 paginas
Manual de usuario   AtlonA, 9 paginas
AT-HD19SS
Manual de usuario   www.AtlonA.com, 2 paginas
AT-HDCAT-8
Manual de usuario   atlona-2014-catalog-2 - Genesis Technologies, 86 paginas
Manual de usuario   Atlona HDMI Distribution Amplifier Family, 6 paginas
Manual de usuario   Atlona 2 x 8 HDMI to HDBaseTTM Extended Distance Distribution, 1 paginas
AT-HDDA-4
Manual de usuario   Summer 2013 Catalog, 96 paginas
AT-HDDA-8
Manual de usuario   Atlona HDDA HDMI Distribution Amplifier Collection Atlona 1 x 8, 1 paginas
AT-HDRS
Manual de usuario   Atlona AT-HDRS User`s manual, 12 paginas
AT-PA100
Manual de usuario   Atlona [en] , 4 paginas
AT-PA100-G2
Manual de usuario   Atlona AT-PA100-G2 User manual, 10 paginas
Manual de usuario   Atlona AT-PA100-G2 User manual, 13 paginas
AT-SDI-14
Manual de usuario   Atlona AT-SDI-14 User`s manual, 16 paginas