public void doEdgeDetection() {
		applyKernelTemp(
				new int[][] { { -1, -2, -1 }, { 0, 0, 0 }, { 1, 2, 1 } }, 8);
		applyKernelTemp2(
				new int[][] { { -1, 0, 1 }, { -2, 0, 2 }, { -1, 0, 1 } }, 8);

		for (int i = 0; i < pixels.length; i++) {
			for (int j = 0; j < pixels[i].length; j++) {
				pixels[i][j] = (int) Math.round(Math.sqrt(temp[i][j]
						* temp[i][j] + temp2[i][j] * temp2[i][j]));
			}
		}
	}