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 02:50:21 +0000 (UTC)
Organization: Universiti Teknologi Petronas
Lines: 18
Message-ID: <hcavtc$au4$1@fred.mathworks.com>
References: <hcanq2$qfi$1@fred.mathworks.com> <b86f3483-1873-4911-9dce-6f6824993c5c@v30g2000yqm.googlegroups.com>
Reply-To: "Syed Ali" <sfaisalalipk@gmail.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 1256784621 11204 172.30.248.35 (29 Oct 2009 02:50:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 Oct 2009 02:50:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1746454
Xref: news.mathworks.com comp.soft-sys.matlab:580825


Sir, 
Let suppose I have a file name traffic.avi.
I need to find out that is there any motion in it or not, for this
I need to take all the frames from the movie "traffic.avi".
Then I will select only frames from 1, 15, 30, 45,..... end, 
Then I will read each frame pixel by pixel and then store them 
as frame 1, frame 15, frame 30, ... end.
Later on I will start doing subtraction 
so frame_60 - frame_45 , frame_45 - frame_30, ...
then display the result as a movie or images, so i can find 
out that either any of the object which is in frame 1 is moving
or not. The problem is when i am using aviread, the MATLAB
creates the structure having all my frames in it, 
in cdata and map, then I dont know how to get excess
of each frame and how to read the values from each frame.
Hope you can understand.
Regards
Syed,