Login  Register

Re: Adjacent pixels

Posted by karo03 on Jul 29, 2009; 6:13am
URL: http://imagej.273.s1.nabble.com/Adjacent-pixels-tp3691637p3691638.html

Hi, even if I misunderstand your question:

The mean intensity of the eight adjacent pixels is calculated by  
Process->Filters->Convolve... with a kernel of
1 1 1
1 0 1
1 1 1
with Normalize Kernel switched on.

For better calculation you should convert your binary image to float  
and divide it by 255. After convolution each pixel has the mean of the  
neighbor values. If you have beside your binary image an intensity  
image the same method would deliver you the mean intensity.

Regards
Karsten

Am 28.07.2009 um 23:14 schrieb Lorena Rela:

> Hi, I have binary pictures and I'd like to measure the mean  
> intensity of the 8
> pixels adjacent to each pixel. I'd like to keep track of what was  
> the value of
> each center pixel analyzed (either 1 or 0). How can I do that?
>
> Thanks!
> --
> Lorena Rela, Ph.D.
> Postdoctoral Associate - Greer Lab
> Department of Neurosurgery
> Yale University School of Medicine
> Tel (Lab) 203-785-4230
> Fax 203-737-2159
>
> PO Box 208082
> New Haven, 06520 CT, USA

Karsten
[hidden email]