[SciPy-user] PIL and gaussian_filter?

Johannes Strömberg johannes.stromberg@gmail....
Wed May 21 08:49:24 CDT 2008


I am new to using SciPy and I want to use it to apply gaussian
smoothing/blur to images I get from PIL (Python Imaging Library).

When I use the asarray() method on my PIL image I get a 3-dimensional
array, shape is  (w, h, 3 [rgb-values]).

I am wondering how I can transform this to something that is
compatible with f.e. ndimage.gaussian_filter? (When I run it directly
it simply removes color from the image).



More information about the SciPy-user mailing list