Prev: optimization
Next: real coded ga
From: sweety on 2 Apr 2010 03:41 "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 2 Apr 2010 07:03 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 2 Apr 2010 07:44 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 2 Apr 2010 09:56 no neighbors are not overlapping . i want to apply local transformation on n*n window
From: sweety on 2 Apr 2010 09:59
how to calculate intensity of edges detected by sobel edge detector |