From: sweety on
"suppose i have image of 100*100 . i want to take a local window of n*n and calculate the mean and standard deviation in a neighborhood centered at (x,y)
From: ImageAnalyst on
On Apr 2, 3:41 am, "sweety " <sukhisem...(a)yahoo.co.in> wrote:
> "suppose i have image of 100*100 . i want to take a local window of n*n and calculate the mean and standard deviation in a neighborhood centered at (x,y)
-------------------------------------------
row1 = y-n/2;
row2 = row1 + n - 1;
col1 = x - n2/;
col2 = col1 + n - 1;
subImage = originalImage(row1:row2, col1:col2);
meanValue = mean(subImage(:));

If you want to do it for all x,y, then use the conv2 function.
From: Ashish Uthama on
On Fri, 02 Apr 2010 04:41:23 -0300, sweety <sukhisembhi(a)yahoo.co.in>
wrote:

> "suppose i have image of 100*100 . i want to take a local window of n*n
> and calculate the mean and standard deviation in a neighborhood centered
> at (x,y)

Are the neighborhood non-overlapping?
If so, look at BLOCKPROC (or BLKPROC in older versions)
From: sweety on
no neighbors are not overlapping . i want to apply local transformation on n*n window
From: sweety on
how to calculate intensity of edges detected by sobel edge detector
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9
Prev: optimization
Next: real coded ga