I need to read from the file and depending upon the three values I need a dynamic array that is something like
int array3D [frame][height][width]
I don't know the three parameters(frame, height, width) at compile time.
Then i want to read the datafile frame by frame
fread(df, sizeof(int), (height*width), fp)
and then assign it to
array3D[0][0][0] to array3D[0][height][width]
and then read second frame and assign to
array3D[1][0][0] to array3D[1][height][width]
and so on...
any help
thanks
int array3D [frame][height][width]
I don't know the three parameters(frame, height, width) at compile time.
Then i want to read the datafile frame by frame
fread(df, sizeof(int), (height*width), fp)
and then assign it to
array3D[0][0][0] to array3D[0][height][width]
and then read second frame and assign to
array3D[1][0][0] to array3D[1][height][width]
and so on...
any help
thanks