Re: [Tutor] Masked arrays & scipy.ndimage.

2012-06-01 Thread Koen De Munter
> Date: Fri, 1 Jun 2012 18:50:15 +1000 > From: st...@pearwood.info > To: tutor@python.org > Subject: Re: [Tutor] Masked arrays & scipy.ndimage. > > Koen De Munter wrote: >> Dear tutors, >> >> Given an image, I want

[Tutor] Masked arrays & scipy.ndimage.

2012-06-01 Thread Koen De Munter
Dear tutors, Given an image, I want to generate another image with the mean values of the pixels in their neighbourhood, thereby ignoring some of the neighbouring pixels (e.g. the padded boundary). I hoped I could use masked arrays for that, but apparently, this does not work. -- def fnc(buff