c++ - Insufficent Memory -
i new open cv , have been working on project on gesture recognition. implementing pca , while calculating eigen vectors. stumbled upon insufficient memory error. 2d arrays used dynamically allocated. still same error creeps up. here code: void initialization() { long int nrows=15000, ncolumns=20; int i,j; cov = (float**) malloc(nrows * sizeof(float *)); for(i = 0; < nrows; i++) { cov[i] = (float*) malloc(ncolumns * sizeof(float)); } matrix = (int**) malloc(15000 * sizeof(int *)); for(i = 0; < nrows; i++) { matrix[i] = (int*) malloc(20 * sizeof(int)); } matrix1 = (int**) malloc(15000* sizeof(int *)); for(i = 0; < nrows; i++) { matrix1[i] = (int*) malloc(20 * sizeof(int)); } ..... } void cal_eigen() { //mat original matrix cou...