0% found this document useful (0 votes)
14 views

'Winvideo' 'Manual' 'Framespertrigger' 'Triggerrepeat'

This document describes taking real-time images from a video input source, sending 3 images to the function isub for processing, and putting the output into variables x, y, and u. A video input is configured to manually trigger the capture of single frames indefinitely. In a loop, 3 images are captured on each trigger and the first and third are sent to isub(), whose output is assigned to x, y, and u.

Uploaded by

MekaTron
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

'Winvideo' 'Manual' 'Framespertrigger' 'Triggerrepeat'

This document describes taking real-time images from a video input source, sending 3 images to the function isub for processing, and putting the output into variables x, y, and u. A video input is configured to manually trigger the capture of single frames indefinitely. In a loop, 3 images are captured on each trigger and the first and third are sent to isub(), whose output is assigned to x, y, and u.

Uploaded by

MekaTron
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%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

You might also like