MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Uživatelská příručka Strana 178

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 574
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 177
6 Acquiring Image Data
6-30
5
Remove frames from the memory buffer — When you remove frames from the
memory buffer, the object decrements the value of the FramesAvailable property
by the number of frames removed.
To remove frames from the memory buffer, call the getdata function, specifying
the number of frames to retrieve. For more information about using getdata, see
“Bringing Image Data into the MATLAB Workspace” on page 7-3.
data = getdata(vid,5);
After you execute the getdata function, check the values of the FramesAcquired
and FramesAvailable properties again. Notice that the FramesAcquired
property remains unchanged but the object has decremented the value of the
FramesAvailable property by the number of frames removed from the memory
buffer.
vid.FramesAcquired
ans =
15
vid.FramesAvailable
ans =
10
The following figure illustrates the contents of the memory buffer after frames are
removed.
Zobrazit stránku 177
1 2 ... 173 174 175 176 177 178 179 180 181 182 183 ... 573 574

Komentáře k této Příručce

Žádné komentáře