double[][] findEdges(double[][] smoothedGray) {
		double[][] edges = new double[smoothedGray.length][smoothedGray[0].length];
		for(int x = 0; x < edges.length; ++x) {
			for(int y = 0; y < edges[x].length; ++y) {
				if(x < 1 || x >= edges.length - 1 || y < 1 || y >= edges[x].length - 1) {
					edges[x][y] = 0;
					continue;
				}
				edges[x][y] = Math.hypot(edgeX(x, y, smoothedGray), edgeY(x, y, smoothedGray));
			}
		}
		return edges;
	}