MATLAB IMAGE ACQUISITION TOOLBOX 3 Uživatelská příručka Strana 141

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 408
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 140
Controlling Logging Parameters
5 Remove frames from the memory buffer —Whenyouremove
frames from the memory buffer, the o bject d ecrements the value of the
FramesAvailable property by the number of fram es 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 I mage Data in to the MATLAB Workspace”
on page 6-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.
5-27
Zobrazit stránku 140
1 2 ... 136 137 138 139 140 141 142 143 144 145 146 ... 407 408

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

Žádné komentáře