[SciPy-dev] RFR: Add io to ndimage

Gael Varoquaux gael.varoquaux at normalesup.org
Mon May 25 03:05:20 EDT 2009


On Thu, May 21, 2009 at 01:34:37AM +0200, Stéfan van der Walt wrote:
> Hi all,

> It's bothered me for a long time that our image reading routines are
> hidden in scipy.misc.  Here is a patch that implements image reading
> via the PIL array interface.  Please let me know whether you like this
> or not.

Docstring of imread seems wrong: the fname input argument is not a PIL
image, it is the filename of the input image.

Also, I think you should fail gracefully if PIL is not installed. RIght
now this will give a traceback that might surprise the user
('ImportError: no module named PIL').

My 2 cents,

Gaël



More information about the SciPy-Dev mailing list