matlab图像增强与平滑简单程序.docVIP

  • 35
  • 0
  • 约 11页
  • 2017-01-14 发布于重庆
  • 举报
matlab图像增强与平滑简单程序

图像增强与平滑 直方图: I=imread(1.jpg); imshow(I); I=rgb2gray(I); %三维变成二维的图; figure,imhist(I); %显示灰度分布 直方图均衡处理: I=imread(1.jpg); I=rgb2gray(I); J=histeq(I); Subplot(1,2,1),imshow(I); Subplot(1,2,2),imshow(J); figure,Subplot(1,2,1),imhist(I,64); Subplot(1,2,2),imhist(J,64); %这个参数是什么意思??? 灰度变换: imadjust(I,[],[], ); I=imread(1.jpg); I=rgb2gray(I); J=imadjust(I,[0.1,0.5],[]); Subplot(1,2,1),imshow(I); Subplot(1,2,2),imshow(J); figure,Subplot(1,2,1),imhist(I,64); Subplot(1,2,2),imhist(J,64); 图像反转: I=imread(1.jpg); I=rgb2gray(I); J=imadjust(I,[0.1,0.9],[0.9 0.1]); Subplot(1,2,1),imshow(I); Subplot(1,2,

文档评论(0)

1亿VIP精品文档

相关文档