I have some data presented in a 1300x1341 matrix. I would like to break this matrix into several parts (for example, 9) so that I can iterate and process them. The data should remain ordered in the sense that x [0,1] remains lower (or higher, if you want) x [0,0] and other than x [1,1].
Just as if you were displaying data, you could draw 2 vertical and 2 horizontal lines above the image to illustrate 9 parts.
If I use numpys reshape (e.g. matrix.reshape (9,260,745) or any other combination of 9,260,745), it does not give the required structure as the above ordering is lost ...
I misunderstood the reshape method or can it be done this way?
What other pythonic / numpy way to do this?
source share