📄 s021.m
字号:
%灰度图像转换为二值图像(指定门限) s021
I21=imread('1.jpg');
I210=rgb2gray(I21);
I211=im2bw(I210,0.1);
I212=im2bw(I210,0.18);
I213=im2bw(I210,0.32);
I214=im2bw(I210,0.42);
I215=im2bw(I210,0.53);
I216=im2bw(I210,0.643);
I217=im2bw(I210,0.77);
I218=im2bw(I210,0.84);
subplot(2,4,1),imshow(I211);
subplot(2,4,2),imshow(I212);
subplot(2,4,3),imshow(I213);
subplot(2,4,4),imshow(I214);
subplot(2,4,5),imshow(I215);
subplot(2,4,6),imshow(I216);
subplot(2,4,7),imshow(I217);
subplot(2,4,8),imshow(I218)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -