splitting numpy array unevenly

Wanderer wanderer at dialup4less.com
Mon Sep 17 18:31:08 EDT 2012


I need to divide a 512x512 image array with the first horizontal and vertical division 49 pixels in. Then every 59 pixels in after that. hsplit and vsplit want to start at the edges and create a bunch of same size arrays. Is there a command to chop off different sized arrays?

Thanks



More information about the Python-list mailing list