I am not able to create 3D array with pixel value more then (100,100,3) in android. However it is working fine with array les then above mentioned dimension.
My code:
double mat[][][] = new double[400][400][3];
Error:java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack available
However,
double mat[][][] = new double[100][100][3];
works fine. I am using emulated virtual machine to run android application.