⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yuanchengxu.m

📁 将一幅图像转化为二值图像
💻 M
字号:
clear all
IY=imread('cameraman.bmp');
I=im2bw(IY,0.35);
[zipped,info]=Xingchengbianma(I);
unzipped=Xingchengjiema(zipped,info);
subplot(1,3,1),imshow(IY),title('原始灰度图像');
subplot(1,3,2),imshow(I),title('二值图像');
subplot(1,3,3),imshow(unzipped),title('解码图像');
unzipped=uint8(unzipped);
erms=jfwucha(I(:),unzipped(:))
cr=info.ratio
whos IY I unzipped zipped

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -