untitled8.m

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

M
16
字号
clear all
IY=imread('cameraman.bmp');
I=im2bw(IY,0.35);
[zipped,info]=Xingchengbianma(I);
unzipped=Xingchengjiema(zipped,info);
imshow(IY)
title('原始灰度图像');
figure,imshow(I)
title('二值图像');
figure,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 + -
显示快捷键?