Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!15g2000yqy.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Need urgent help in video image processing
Date: Fri, 30 Oct 2009 09:31:20 -0700 (PDT)
Organization: http://groups.google.com
Lines: 32
Message-ID: <354fb82a-a85f-4f9d-9f78-c5caf64a2367@15g2000yqy.googlegroups.com>
References: <hcanq2$qfi$1@fred.mathworks.com> <b86f3483-1873-4911-9dce-6f6824993c5c@v30g2000yqm.googlegroups.com> 
	<b66b1331-1969-4975-a94c-99060efe3d92@y23g2000yqd.googlegroups.com> 
	<hcc5rr$c7j$1@fred.mathworks.com>
NNTP-Posting-Host: 192.44.136.113
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1256920281 16607 127.0.0.1 (30 Oct 2009 16:31:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 30 Oct 2009 16:31:21 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 15g2000yqy.googlegroups.com; posting-host=192.44.136.113; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	CyberSafe-IWA-Enable; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; 
	.NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 
	3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:581323


On Oct 29, 9:38 am, "Syed Ali" <sfaisalal...@gmail.com> wrote:
> Dear Sir Image Analyst,
> Thanks for your great help,
> I will see how I can subtract frames and find out the motion.
> I have tried this code to extract all the frames and save it
> in jpg format.
>
> close all;
> clc;
>
> %
> fram_test = aviread('Rhinos.avi'); % Read avi test file
> for j=1:length(fram_test)    % Loop for creating frames with Name Missile and
>       filename=['Rhinos-', num2str(j) '.jpg']; % save it as jpg
>       imwrite(fram_test(j).cdata,filename,'jpeg');
> end
>
> But your code is more managed :)
> could you please help me in how can I  work with cdata and map
> so it will be fast. Cause in my code it will take longer time. As when
> the size of file is increased to 816 frames.
>
> Regards
> Syed
----------------------------------------------------------------------------------------------------------------------
Syed:
The Image Processing Toolbox has a demo on "Detecting Cars in a Video
of Traffic."
Have you gone through that tutorial?