this post is linked to this post and this one.
I have tried the suggested function which works for small matrices. But I have a problem with big matrices.
I am trying to slice a (1088, 1920) into 32x32 blocks, but it doesn't work.
The values are ordered differently in the blocks than in the original matrix. Though the final dimensions on the outputed array are correct (2040, 32, 32) and the values of the first line are correct; the values of the second line of the first block is not the [1, 0:32] of the original array.
I don't really have a clue about where could the problem come from. Could it be a memory/buffer problem ?
Regards