필터 지우기
필터 지우기

How to reduce Image Acquisition time

조회 수: 1 (최근 30일)
Mark Golberg
Mark Golberg 2016년 2월 15일
댓글: Mark Golberg 2016년 2월 24일
Hello, elapsedTime for the following code equals 1.0592 seconds.
imaqreset
vid = videoinput('pixelinkimaq');
src=getselectedsource(vid);
set(vid,'ROI',[0 0 64 64])
set(src,'FrameRate',150)
set(src,'Exposure',0.002)
set(vid,'FramesPerTrigger',150);
triggerconfig(vid, 'manual');
start(vid);
tic
trigger(vid);
wait(vid,Inf);
frames = getdata(vid, get(vid,'FramesAvailable'));
elapsedTime = toc
I really really need it to be less than 1 second. Any Ideas how running time can be reduced?
THANKS

답변 (2개)

Walter Roberson
Walter Roberson 2016년 2월 15일
You asked for a FrameRate of 150 frames per second, and you asked for 150 FramesPerTrigger, so you are asking for 150 Frames Per Trigger / 150 Frames Per Second = exactly 1 second per Trigger. You cannot reduce the acquisition time for 1 second's worth of frames to below 1 second.
  댓글 수: 4
Image Analyst
Image Analyst 2016년 2월 15일
I don't know that it's any different than the 1.0592 seconds he originally said, unless he decided to record fewer frames, like the 140 I suggested.
Mark Golberg
Mark Golberg 2016년 2월 24일
1 second takes me ~1.5 seconds to processed and display. Trying to solve this with buffer and parallel computing...

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2016년 2월 15일
What if you try
set(src,'FrameRate', 160)
or
set(vid,'FramesPerTrigger',140);
How long a time do those give you?
  댓글 수: 2
Image Analyst
Image Analyst 2016년 2월 15일
Mark, did you try my answer yet? You might just have to do trial and error to "home in" on the setting that produces a length as close to 1 second as possible.
Mark Golberg
Mark Golberg 2016년 2월 24일
I can't , I need to work with fps 150.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by