[SciPy-user] Adding support for 16 bits images to scipy.fromimage

Pierre Barbier de Reuille pbdr at cmp.uea.ac.uk
Fri Jul 14 10:43:55 EDT 2006


Hi,

I just noticed that scipy.fromimage was unable to handle 16 bits images.
However, here is a patch to apply to scipy/misc/pilutil.py to correct that:

74a75,76
>     if mode == 'I;16':
>         type = numpy.uint16


Pierre



More information about the SciPy-User mailing list