How do I speed up my image acquisition routine in Image Acquisition Toolbox 1.9 (R14SP3)?
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
I am unable to acquire images from Image Acquisition Toolbox quickly enough for real-time processing. I use a loop of the form:
for indx=1:1000
      % read the next frame
      start(vid);
      wait(vid);
      fdat = getdata(vid);
      % Process the data
end
Akzeptierte Antwort
  MathWorks Support Team
    
 am 14 Apr. 2010
        In order to improve the speed of an image acquisition routine, execute the following steps:
1. Set the Trigger Mode to 'Manual' before starting the video acquisition.
triggerconfig(vid,'manual');
2. Set the number of triggers to be executed to infinity if you plan on acquiring an indefinite number of frames.
set(vid,'TriggerRepeat',inf);
3. Start the acquisition only once outside the loop (This is the time-consuming part of the process)
start(vid);
4. Use the less time-consuming TRIGGER function to acquire frames inside the loop.
trigger(vid);
fdat = getdata(vid);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
