Re: 9x9 Focal Mean of an Image
Posted by
Thomas Pengo on
Jul 04, 2011; 7:31am
URL: http://imagej.273.s1.nabble.com/9x9-Focal-Mean-of-an-Image-tp3684020p3684021.html
Hi Meagan,
if you want to do precisely what you said, and have fine control over what's
happening, you can use the "Process/Filters/Convolve..." menu item, with
filter:
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
and the "Normalize" checkbox checked.
On the other hand, if you just want to smooth your image, you may get better
results by using a Gaussian filter or use one of the other good suggestions
you already received.
Cheers
Thomas
On 1 July 2011 21:57, Meagan Ita <
[hidden email]> wrote:
> Dear List,
>
> Does anyone know if it's possible to do a sort of sliding neighborhood
> operation on every pixel in an image? The operation would need to be a 9x9
> focal mean on every pixel. In other words, averaging the 9x9 block about
> every pixel and setting the pixel equal to that average.
>
> Thank you for any help!
>
> Regards,
> M. Madison
>