Path: news.mathworks.com!not-for-mail
From: "Syed Ali" <sfaisalalipk@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Need urgent help in video image processing
Date: Thu, 29 Oct 2009 13:38:03 +0000 (UTC)
Organization: Universiti Teknologi Petronas
Lines: 23
Message-ID: <hcc5rr$c7j$1@fred.mathworks.com>
References: <hcanq2$qfi$1@fred.mathworks.com> <b86f3483-1873-4911-9dce-6f6824993c5c@v30g2000yqm.googlegroups.com> <b66b1331-1969-4975-a94c-99060efe3d92@y23g2000yqd.googlegroups.com>
Reply-To: "Syed Ali" <sfaisalalipk@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256823483 12531 172.30.248.38 (29 Oct 2009 13:38:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 Oct 2009 13:38:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1746454
Xref: news.mathworks.com comp.soft-sys.matlab:580964


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