Path: news.mathworks.com!not-for-mail
From: "Talal Khan" <talaltk@mathwork.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: *HELP* Problem with videoinput, preview statement
Date: Tue, 15 Jan 2008 23:19:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 85
Message-ID: <fmjf16$380$1@fred.mathworks.com>
References: <fme5s2$kk9$1@fred.mathworks.com> <fmh2ia$hro$1@fred.mathworks.com> <fmh5nf$q8k$2@aioe.org> <fmh80l$pb7$1@fred.mathworks.com> <fmi7rc$4pe$2@fred.mathworks.com> <fmj7ku$ilf$1@fred.mathworks.com>
Reply-To: "Talal Khan" <talaltk@mathwork.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1200439142 3328 172.30.248.35 (15 Jan 2008 23:19:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 15 Jan 2008 23:19:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1244142
Xref: news.mathworks.com comp.soft-sys.matlab:445876


hey guys iv resolved the problem... the problem wasnt in 
the getsnapshot, it was in the 'pause' i  used... thanx 
for everything u guys helped allot....:)

"Talal Khan" <talaltk@mathwork.com> wrote in message 
<fmj7ku$ilf$1@fred.mathworks.com>...
> ok i downloaded the latest version of matlab including 
the 
> toolbox etc. good news and bad news
> 
> good news is i managed to get PREVIEW working when i 
make 
> an executable by a user defined image handle
> 
> The Bad news is i can not get the GETSNAPSHOT to work 
> outside matlab enivironment...i.e when i make an 
> executable...any solution to that??
> 
> 
> Dave Tarkowski <dave.tarkowski@mathworks.com> wrote in 
> message <fmi7rc$4pe$2@fred.mathworks.com>...
> > Talal Khan wrote:
> > > dpb <none@non.net> wrote in message 
> > > <fmh5nf$q8k$2@aioe.org>...
> > >> Talal Khan wrote:
> > >>> OK thanx. so basically your saying i have to 
update 
> my 
> > >>> matlab version along with the image acquisition 
> > > toolbox, 
> > >>> other wise the PREVIEW wont work. ill try doing 
> that. 
> > >>> although i think ill have to pay inorder to get 
the 
> > > latest 
> > >>> version. can i not just update it for free or 
> > > something.
> > >> ...
> > >>
> > >> You can't do much of anything other than patches of 
> > > current version "for 
> > >> free or something" from TMW... :)
> > >>
> > >> --
> > > nice...ill get the new matlab from somewhere as long 
> as 
> > > the PREVIEW works on that...btw can u give me some 
> advice 
> > > how i should modify my code so that it works when i 
> make 
> > > it into an executable. ...you already told me that i 
> have 
> > > to use a user defined image handle....then it will 
> work 
> > > when its a .exe file.... as in show me the code for 
it
> > > 
> > > Talal Khan
> > > 
> > 
> > Talal,
> > 
> > The help for PREVIEW in the newer versions of MATLAB 
has 
> an example of 
> > using an image handle.  The code is basically this:
> > 
> > % Create an image object of the same size as your 
video.
> > hImage = image(zeros(480,640,3));
> > 
> > % Start the preview.
> > preview(vid, hImage);
> > 
> > You should also see the reply by Vihang for a utility 
on 
> MATLAB Central 
> > that will allow you to achieve similar functionality 
in 
> the version of 
> > MATLAB that you are using.
> > 
> > -Dave
>