public PixImage sobelEdges() {
		// Replace the following line with your solution.
		PixImage edgedetected = new PixImage(this);
		long[][] energy = findEnergy();
		for (int i = 0; i < height; i++) {
			for (int j = 0; j < width; j++) {
				edgedetected.pixel[i][j].red = edgedetected.pixel[i][j].green = edgedetected.pixel[i][j].blue = mag2gray(energy[i][j]);
			}
		}
		return edgedetected;
		// Don't forget to use the method mag2gray() above to convert energies
		// to
		// pixel intensities.
	}