| Rebecca Torres 2007-03-30, 7:11 pm |
| Hi all,
I am working on acquiring a movie and .avi file from a camera. Here
is the code that I have so far:
vid1=videoinput('winvideo',1);
vid1.LoggingMode='disk';
vid1.FramesPerTrigger=150;
preview(vid1)
set(vid1,'ROIPosition',[948 524 988 564])
obj = videoinput('winvideo');
vid1.LoggingMode = 'disk';
vid1.DiskLogger = file;
start(obj)
start(vid1)
stop(vid1)
We are having two problems:
1. When I run the ROIPosition code, MATLAB returns the following
error:
Error using ==> imaqdevice.set
ROIPosition: X offset value must be less than the width specified by
VideoResolution.
How can I fix this?
2. I am successful in generating the preview for the movie, but I'm
stuck on how to save the movie file into the workspace so that I can
use it.
Does anyone have any insight with these problems? Any help would be
appreciated.
Team BAMA
|