Prev: optimization
Next: real coded ga
From: sweety on 25 Mar 2010 00:33 i am working on cardiac image of 600*600 and i take one block of 20*20 for local enhancement i have to set local window as 20*20(n*n) and its center at (i,j) . i want to calculate mean . how i can calculate mean and value of input image at its center (i,j)
From: sweety on 25 Mar 2010 00:39 i am working on cardiac image of 600*600 size and select a local window of 20*20 (n*n) and its center at (i,j). how to calculate mean of local window how to calculate value of input image at its center
From: ImageAnalyst on 25 Mar 2010 08:44 On Mar 25, 12:39 am, "sweety " <sukhisem...(a)yahoo.co.in> wrote: > i am working on cardiac image of 600*600 size and select a local window of 20*20 (n*n) and its center at (i,j). > how to calculate mean of local window > how to calculate value of input image at its center ----------------------------------------------------- How about something like this (untested): middleWindow = originalImage(590:610, 590:610) meanOfWindow = mean(middleWindow(:)); meanAtCenter = originalImage(300,300);
From: sweety on 27 Mar 2010 02:57 thanks . its helpful how to calculate number of edge pixel detected by sobel detector
From: ImageAnalyst on 27 Mar 2010 07:13
On Mar 27, 2:57 am, "sweety " <sukhisem...(a)yahoo.co.in> wrote: > thanks . its helpful > how to calculate number of edge pixel detected by sobel detector ------------------------------------------------------------------------------------ Well, the sum() function comes to mind, if you're using a binary image. If you're using the gray scale edge image, you'd have to define what edge strength you want to consider, such as values > 0, and then threshold before you sum: numberOfEdgePixels = sum(edgeImage > 0); |