Best way to cycle through numpy images

Are all of the images in a “pile” the same size? If they are different sizes as you scroll through them, then that is what is causing the problem. I would suggest sampling all of the images to a common resolution and scrolling through that array of images…

Ben Root


On Thu, Aug 11, 2011 at 11:34 AM, David Just <Just.David@…3721…> wrote:

The images are usually ~ 256x256 greyscale. They vary a bit in size, but are not large by any shape or form.

It seems interpolation is happening on each scroll. This is evident by changing the interpolation scheme from linear to spline36.

Linear takes ~0.25 seconds to re-draw the new image

spline36 takes ~.36 seconds to re-draw the new image

Each “pile” of images ranges in size from 10-150 so scrolling from top to bottom of 150 images can take upwards of 30 seconds!!!

(This is on a macbook pro with a 2.53 ghz core 2 duo processor. )

I’m also trying to figure out how to change the size of the canvas that I get since it’s overly large and seems to be stopping me from reducing the size of my GTK window.