Unverified Commit 07caa799 authored by Kiryuu Sakuya's avatar Kiryuu Sakuya 🎵
Browse files

Finish 01

parent b7cfad90
......@@ -176,3 +176,40 @@ imshow(I,C);
### 答案
`step2.m` 的 Begin 和 End 之间输入:
```matlab
I=imread('img/rose_512.jpg');
subplot(2,5,1);
imshow(I,[]);
subplot(2,5,2);
I256=imresize(I,[256,256],'bicubic');
imshow(I256,[]);
subplot(2,5,3);
I128=imresize(I,[64,64],'bicubic');
imshow(I128,[]);
subplot(2,5,4);
I64=imresize(I,[32,32],'bicubic');
imshow(I64,[]);
subplot(2,5,5);
I32=imresize(I,[4,4],'bicubic');
imshow(I32,[]);
subplot(2,5,6);
imshow(I,[]);
subplot(2,5,7);
I256=grayslice(I,64);
imshow(I256,[])
subplot(2,5,8);
I64=grayslice(I,16);
imshow(I64,[])
subplot(2,5,9);
I16=grayslice(I,4);
imshow(I16,[])
subplot(2,5,10);
I4=grayslice(I,2);
imshow(I4,[])
```
实际输出图片:
![output/picture2.jpg](output/picture2.jpg)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment