Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe17.iad.POSTED!7564ea0f!not-for-mail
From: "Nasser M. Abbasi" <nma@12000.org>
Newsgroups: comp.soft-sys.matlab
References: <hcanq2$qfi$1@fred.mathworks.com> <b86f3483-1873-4911-9dce-6f6824993c5c@v30g2000yqm.googlegroups.com> <hcavtc$au4$1@fred.mathworks.com> <7P7Gm.14$v47.9@newsfe23.iad> <hcb891$bhr$1@fred.mathworks.com>
Subject: Re: Need urgent help in video image processing
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3598
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
X-EsetId: 321EA926BF2033396252
X-EsetScannerBuild: 5929
Message-ID: <uP9Gm.16543$6q1.11334@newsfe17.iad>
NNTP-Posting-Host: ncdeodfefpjopplmihjclpliaacepnnh
X-Complaints-To: abuse@charter.net
X-Trace: lohomekffeimhpgdadefjppgkgeilljabimjjolaghibbnkdncdeodfefpjopplmmgdmmdanmgdmojgmbpfleebipkijiajhoeggmpchongebilphpoclfmmckaemiblnbbjahdmbpmhjpdc
NNTP-Posting-Date: Thu, 29 Oct 2009 05:34:18 UTC
Date: Thu, 29 Oct 2009 00:34:17 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:580840



"Syed Ali" <sfaisalalipk@gmail.com> wrote in message 
news:hcb891$bhr$1@fred.mathworks.com...
>
> Now in cdata <240 X 320 X 3> 8 units.
> The problem is how I can read pixel by pixel from each frame so
> I can have single value of pixels (R, G, B) from each frame.

I do not know the avi stuff much, but the above seems like a common layout.

You have a frame which is made up of 3 channels (i.e. color frame). So the 
first channel is the first page of the 3-D matrix, the second channel is the 
second page, etc...

I do not know which is which, assume cdata(:,:,1) is R, cdata(:,:,2) is G 
and cdata(:,:,3) is the blue.

So just read each pixel as you would normally read 3-D matrix?

the first pixel has its R pixel located at cdata(1,1,1), and has green pixel 
at (1,1,2) etc...

each pixel value is 8 bits of intensity. so has value of 0..255


--Nasser