public void edgeDetection(int edgeDist) {
		Pixel leftPixel = null;
		Pixel rightPixel = null;
		Pixel[][] pixels = this.getPixels2D();
		Color rightColor = null;
		for (int row = 0; row < pixels.length; row++) {
			for (int col = 0; col < pixels[0].length - 1; col++) {
				leftPixel = pixels[row][col];
				rightPixel = pixels[row][col + 1];
				rightColor = rightPixel.getColor();
				if (leftPixel.colorDistance(rightColor) > edgeDist)
					leftPixel.setColor(Color.BLACK);
				else
					leftPixel.setColor(Color.WHITE);
			}
		}
		
		Pixel topPixel = null;
		Pixel bottomPixel = null;
		Color topColor = null;
		for (int row = 0; row < pixels.length; row++) {
			for (int col = 0; col < pixels[0].length - 1; col++) {
				topPixel = pixels[row][col];
				bottomPixel = pixels[row][col + 1];
				topColor = topPixel.getColor();
				if (bottomPixel.colorDistance(topColor) > edgeDist)
					topPixel.setColor(Color.BLACK);
				else
					bottomPixel.setColor(Color.WHITE);
			}
		}
	}