'Winvideo' 'Manual' 'Framespertrigger' 'Triggerrepeat'
'Winvideo' 'Manual' 'Framespertrigger' 'Triggerrepeat'
'Winvideo' 'Manual' 'Framespertrigger' 'Triggerrepeat'
%Take images in real time and send to Function isub for processing
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
vid=videoinput('winvideo',1);
triggerconfig(vid,'manual');
set(vid,'FramesPerTrigger',1);
set(vid,'TriggerRepeat',Inf);
start(vid);
while(1)
for j=1:3
trigger(vid);
im=getdata(vid,1);
if j==1
i_bef=im;
end
if j==3
i_aft=im;
end
end
[x,y,u]=isub(i_aft,i_bef);
end