📄 histequal.m
字号:
% egalizarea histogramei
f=imread('im_1_cameraman.tif');
g=histeq(f,256);
figure(1);
subplot(2,2,1), imshow(f);
subplot(2,2,2), imhist(f);
subplot(2,2,3), imshow(g);
subplot(2,2,4), imhist(g);
%modificarea contrast
I2 = imadjust(g);
level = graythresh(I2);
bw = im2bw(I2,level);
bw = bwareaopen(bw,50);
figure(2);
subplot(2,1,1), imshow(f);
subplot(2,1,2), imshow(bw);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -