Login  Register

Adjacent pixels

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Adjacent pixels

Lorena Rela
1 post
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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Adjacent pixels

karo03
145 posts
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]
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Does anyone have experiment on microstructure image analysis with ImageJ?

Yu Liu
1 post
Hi guys,
Does anyone have experiment on microstructure image analysis (abstract the random geometry info) with ImageJ?
-Yu

2009-07-29






发件人: Karsten Rodenacker
发送时间: 2009-07-28 23:15:38
收件人: IMAGEJ
抄送:
主题: Re: Adjacent pixels

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]