public void integralImages(String path, int max, int[][][] data) throws IOException{
		for(int i = 0; i < max; i++){
			
			File[] filesList = new File(path).listFiles();
			Arrays.sort(filesList);
			filesList = Arrays.copyOfRange(filesList, 0, max);
			BufferedImage buffIm = ImageIO.read(filesList[i]);
			//System.out.println(filesList[i].getName());
			String str = "";
			String integ = "";
			for(int n = 0; n < SIZE; n++){
				str = "";
				integ = "";
				for(int m = 0; m < SIZE; m++){
					int pixel = buffIm.getRaster().getPixel(m, n, (int[]) null)[0];
					if(m == 0){
						if(n == 0){
							data[i][n][m] = pixel;
						} else {
							data[i][n][m] = pixel 
									+data[i][n - 1][m];
						}
					} else {
						if(n == 0){
							data[i][n][m] = data[i][n][m - 1] + pixel;
						} else {
							data[i][n][m] = data[i][n][m - 1] 
									+ pixel
									+ data[i][n -1][m] 
											- data[i][n -1][m - 1];
						}
					}
					integ += data[i][n][m] + " ";
				}
				if(i == 0)
					System.out.println(integ);
			}
		}
	}