yuanchengxu.m

来自「将一幅图像转化为二值图像」· M 代码 · 共 13 行

M
13
字号
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 + =
减小字号Ctrl + -
显示快捷键?