For Programmers: Free Programming Magazines  


Home > Archive > Matlab > March 2007 > Problems with creating MATLAB movie









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problems with creating MATLAB movie
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com