I need to create double arrays in 3 dimensions. The 3 dimensions are height and width of an image, with the 3rd containing rgb data for each pixel. Unfortunately, it seems that there is a limit on the size the array can be, and trying to instantiate a double array like so:
double fRe[IMGX][IMGY][3];
causes the program to crash out for any values of sizeof(double) * IMGX * IMGY * 3 above ~1,900,000. Can anyone suggest a decent solution for this problem? Creating the array on the heap seems like a lot of work for something so trivial. Plus I'm something of a C++ newbie :S