chamie
**只会显示灰度直方图
I = imread(\'*.bmp\') %图必须是灰度图,或者转换为灰度图I=rgb2gray(I);
imshow(I);
imhist(I);
**同时出现在一个平面上
I = imread(\'*.bmp\') %图必须是灰度图,或者转换为灰度图I=rgb2gray(I);
imshow(I);
subplot(121); %subplot(m,n,p)或者subplot(m n p):m表示是图排成m行,n表示图排成n列,p=1表示从左到右从上到下的第一个位置。
imhist(I);
subplot(122);

**如果多张图片单独显示
I = imread(\'*.bmp\') %图必须是灰度图,或者转换为灰度图I=rgb2gray(I);
figure
imshow(I);
figure
imhist(I);

 

分类:

技术点:

相关文章:

  • 2021-12-20
  • 2021-05-01
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-12-14
  • 2022-12-23
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案