How do I speed up my image acquisition routine in Image Acquisition Toolbox 1.9 (R14SP3)?

11 views (last 30 days)
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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 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);

More Answers (0)

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!