private static double[][] computeHarrisResponse(double k, double[][] lx2,
			double[][] ly2, double[][] lxy) {
		int width = ly2.length, height = ly2[0].length;
		double[][] harrisResponse = new double[width][height];
		double max = 0;
		for (int x = 0; x < width; x++) {
			for (int y = 0; y < height; y++) {
				harrisResponse[x][y] = harrisResponse(x, y, k, lx2, ly2, lxy);
				if (harrisResponse[x][y] > max)
					max = harrisResponse[x][y];
			}
		}
		for (int x = 0; x < width; x++) {
			for (int y = 0; y < height; y++) {
				double r = harrisResponse[x][y];
				if (r < 0) {
					r = 0;
				} else {
					r = 100 * Math.log(1 + r) / Math.log(1 + max);
				}
				harrisResponse[x][y] = r;
			}
		}
		return harrisResponse;
	}