project 1
照片太大,传不上来。。。。
只能复制一下了。。。
➜ src javac -cp "jai_core.jar:jai_codec.jar" *.java ➜ src java -cp ".:jai_core.jar:jai_codec.jar" Sobel feathers.tiff 5 compare Reading image file feathers.tiff Blurring image file. Writing blurred image file blur_feathers.tiff Performing Sobel edge detection on image file. Writing grayscale-edge image file edge_feathers.tiff Writing run-length encoded grayscale-edge image file rle_feathers.tiff Displaying input image, blurred image, and grayscale-edge image. Close the image to quit. ➜ src java PixImage Testing getWidth/getHeight on a 3x3 image. Input image: width: 3 height: 3 0 30 80 10 120 250 240 250 255
Good. Testing blurring on a 3x3 image. Good. Good. Good. Testing edge detection on a 3x3 image. Good. Testing getWidth/getHeight on a 2x3 image. Input image: width: 2 height: 3 0 0 100 0 100 100
Good. Testing blurring on a 2x3 image. Good. Testing edge detection on a 2x3 image. Good.
➜ src java RunLengthEncoding Testing one-parameter RunLengthEncoding constuctor on a 3x3 image. Input image: width: 3 height: 3 0 1 2 3 4 5 6 7 8
Testing getWidth/getHeight on a 3x3 encoding. Good. Testing toPixImage() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing one-parameter RunLengthEncoding constuctor on another 3x3 image. Input image: width: 3 height: 3 2 2 3 3 4 4 5 5 6
Testing getWidth/getHeight on a 3x3 encoding. Good. Testing toPixImage() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing setPixel() on a 3x3 encoding. Good. Testing one-parameter RunLengthEncoding constuctor on a 5x2 image. Input image: width: 5 height: 2 0 1 2 3 4 5 6 7 8 9
Testing getWidth/getHeight on a 5x2 encoding. Good. Testing toPixImage() on a 5x2 encoding. Good. Testing setPixel() on a 5x2 encoding. Good. Testing setPixel() on a 5x2 encoding. Good. Testing setPixel() on a 5x2 encoding. Good. Testing one-parameter RunLengthEncoding constuctor on a 3x2 image. Input image: width: 3 height: 2 0 1 2 3 4 5
Testing getWidth/getHeight on a 3x2 encoding. Good. Testing toPixImage() on a 3x2 encoding. Good. Testing setPixel() on a 3x2 encoding. Good. Testing setPixel() on a 3x2 encoding. Good. Testing setPixel() on a 3x2 encoding. Good.
|