i need to resample a 2d array in blocks of 8 X 8.
to be more elaborate
@ Zuk
i am sorry i made mistake.. it looks like this now ..
Code:
let
a[40][40];
then i want to get
b{ [5][5], [5][5],. . . . .,[5][5] ,
[5][5], [5][5],. . . . .,[5][5] ,
.
.
.
[5][5], [5][5],. . . . .,[5][5] }
ie (eight rows and columns of [5][5] ) ie =64
first [5][5] array should contain a[0][0] to a[5][5]
elements of the array a[40][40].
second [5][5] array should contain a[6][6] to a[10][10]elements of the array a[40][40].
and so on
@ SlyMaelstrom:
you are right , i mean this : 40* 40 equlas (5*5)*(8*8)
the matrix b will be a matrix of 8 by 8 blocks while each block is 5 X 5.
can any body please sort out the problem ..
thanks