From: sweety on
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
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
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
thanks . its helpful
how to calculate number of edge pixel detected by sobel detector
From: ImageAnalyst on
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);

 |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9
Prev: optimization
Next: real coded ga