Code covered by the BSD License  

Highlights from
Motion Detection with Image Acquisition Toolbox & Simulink

image thumbnail

Motion Detection with Image Acquisition Toolbox & Simulink

by

 

18 Jun 2004 (Updated )

Motion detection algorithm in Simulink using the Image Acquisition and Signal Processing Toolbox.

iatmotionGetFrame(vid)
function f = iatmotionGetFrame(vid)
%  IATMOTIONGETFRAME Return a frame to the motion detection demo.
%
%  IATMOTIONGETFRAMES(VID), where VID is a VIDEOINPUT object, returns the
%  first band of the image data returned by GETSNAPSHOT.

% Copyright 2004, The MathWorks, Inc.

f=getsnapshot(vid);
f=double(f(:,:,1));

Contact us