高级农民
- 积分
- 1028
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2014-9-7
- 最后登录
- 1970-1-1
|
交作业了。part4太繁琐,暂时先toPixImage,再压缩一遍,解决了setPixel()方法。tamier@tamier-ubuntu:~/Dropbox/courses/cs61b/project/pj1$ java PixImage
Testing getWidth/getHeight on a 3x3 image. Input image:
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:
0 0
100 0
100 100
Good.
Testing blurring on a 2x3 image.
Good.
Testing edge detection on a 2x3 image.
Good.tamier@tamier-ubuntu:~/Dropbox/courses/cs61b/project/pj1$ java RunLengthEncoding
Testing one-parameter RunLengthEncoding constuctor on a 3x3 image. Input image:
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:
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:
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:
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.
|
|