How do I speed up my image acquisition routine in Image Acquisition Toolbox 1.9 (R14SP3)?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
채택된 답변
MathWorks Support Team
2010년 4월 14일
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!