s053.m
来自「简单的数字图像处理程序」· M 代码 · 共 14 行
M
14 行
% 灰度图像直方图(调整分段数) s053
clear;
I52=imread('1.jpg');
I520=rgb2gray(I52);
subplot(2,4,1),imhist(I520,256);
subplot(2,4,2),imhist(I520,64);
subplot(2,4,3),imhist(I520,32);
subplot(2,4,4),imhist(I520,16);
subplot(2,4,5),imhist(I520,8);
subplot(2,4,6),imhist(I520,4);
subplot(2,4,7),imhist(I520,3);
subplot(2,4,8),imhist(I520,2)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?