From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Need help
Date: Mon, 31 Dec 2012 04:44:12 +0000 (UTC)
Organization: Procter &#38; Gamble Co
Lines: 7
Message-ID: <kbr56s$1am$>
References: <kbje3q$evs$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1356929052 1366 (31 Dec 2012 04:44:12 GMT)
NNTP-Posting-Date: Mon, 31 Dec 2012 04:44:12 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1343420
Xref: comp.soft-sys.matlab:785650

"Krishna Chaitanya Nosina" <> wrote in message <kbje3q$evs$>...
> Hi,
>     Please help me in reading 3x3 matrix at a time from 256x256 image coefficients and the process will be repeated for all the pixel values.
Krishna :
I suggest you use imfilter() or conv2().  Or you can use blockproc().  Or (last resort) you can do it yourself with 4 for loops, the outer two over rows and columns, and the inner two over the 3 by 3 sliding window.  What operation do you plan on doing in that sliding window?
Image Analyst