public static int[][] quantize(double[][] g){
		int[][] Q = new int[8][8];
		for(int i = 0; i < 8 ; i++){
			for(int j = 0; j < 8 ;j++){
				Q[i][j] = (int) Math.round((g[i][j] / quantMat[i][j]));
			}
		}
		

		return Q;
	}