public void toPixel2(int[][] matrix, int h, int w) {

		for (int i = 0; i < h; i++) {
			for (int j = 0; j < w; j++) {
				double re = td[j * h + i].re();
				double im = td[j * h + i].im();

				int ii = 0, jj = 0;
				int temp = (int) (Math.atan(im/re));
				if (temp > 255)
					temp = 255;

				if (i < h / 2) {
					ii = i + h / 2;
				} else {
					ii = i - h / 2;
				}

				if (j < w / 2) {
					jj = j + w / 2;
				} else {
					jj = j - w / 2;
				}
				matrix[ii][jj] = temp;
			}
		}
	}