Simplest way to resize an image-like array

John Ladasky ladasky at my-deja.com
Thu Oct 6 04:00:09 EDT 2011


On Oct 1, 2:22 am, John Ladasky <lada... at my-deja.com> wrote:
> On Sep 30, 1:51 pm, Jon Clements <jon... at googlemail.com> wrote:
>
> > Is something like
> >http://docs.scipy.org/doc/scipy/reference/generated/scipy.misc.imresi...
> > any use?
>
> There we go!  That's the kind of method I was seeking.  I didn't think
> to look outside of scipy.interpolate.  Thanks, Jon.

Oh, grumble, scipy.misc.imresize bumps the array down to an 8-bit
integer array.  I need to do some arithmetic with the arrays, and it
needs to be more precise than 8 bits.  So I may have to rewrite the
function to yield a 16-bit integer at least.



More information about the Python-list mailing list