1 | initial version |
Building for 64-bit is the way to enable your program to use more than 4GB of memory.
Independent of that, if PCA is now your first step, you could precede it with DCT on each image and keep a fraction of the resulting coefficients. You will save memory and gain speed this way.