public static void main(String[] args) {
		// Be forwarned that when you write arrays directly in Java as below,
		// each "row" of text is a column of your image--the numbers get
		// transposed.
		PixImage image1 = array2PixImage(new int[][] { { 0, 10, 240 },
				{ 30, 120, 250 }, { 80, 250, 255 } });
		System.out.println("Testing getWidth/getHeight on a 3x3 image.  "
				+ "Input image:");
		System.out.print(image1);
		doTest(image1.getWidth() == 3 && image1.getHeight() == 3,
				"Incorrect image width and height.");

		System.out.println("Testing blurring on a 3x3 image.");
		doTest(image1.boxBlur(1).equals(
				array2PixImage(new int[][] { { 40, 108, 155 },
						{ 81, 137, 187 }, { 120, 164, 218 } })),
				"Incorrect box blur (1 rep):\n" + image1.boxBlur(1));
		doTest(image1.boxBlur(2).equals(
				array2PixImage(new int[][] { { 91, 118, 146 },
						{ 108, 134, 161 }, { 125, 151, 176 } })),
				"Incorrect box blur (2 rep):\n" + image1.boxBlur(2));
		doTest(image1.boxBlur(2).equals(image1.boxBlur(1).boxBlur(1)),
				"Incorrect box blur (1 rep + 1 rep):\n" + image1.boxBlur(2)
						+ image1.boxBlur(1).boxBlur(1));

		System.out.println("Testing edge detection on a 3x3 image.");
		doTest(image1.sobelEdges().equals(
				array2PixImage(new int[][] { { 104, 189, 180 },
						{ 160, 193, 157 }, { 166, 178, 96 } })),
				"Incorrect Sobel:\n" + image1.sobelEdges());

		PixImage image2 = array2PixImage(new int[][] { { 0, 100, 100 },
				{ 0, 0, 100 } });
		System.out.println("Testing getWidth/getHeight on a 2x3 image.  "
				+ "Input image:");
		System.out.print(image2);
		doTest(image2.getWidth() == 2 && image2.getHeight() == 3,
				"Incorrect image width and height.");

		System.out.println("Testing blurring on a 2x3 image.");
		doTest(image2.boxBlur(1).equals(
				array2PixImage(new int[][] { { 25, 50, 75 }, { 25, 50, 75 } })),
				"Incorrect box blur (1 rep):\n" + image2.boxBlur(1));

		System.out.println("Testing edge detection on a 2x3 image.");
		doTest(image2.sobelEdges()
				.equals(array2PixImage(new int[][] { { 122, 143, 74 },
						{ 74, 143, 122 } })),
				"Incorrect Sobel:\n" + image2.sobelEdges());
	}