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

  • 3
  • 0
  • 约2.01千字
  • 约 11页
  • 2019-05-18 发布于浙江
  • 举报
图像增强与平滑 直方图: 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,2)

文档评论(0)

1亿VIP精品文档

相关文档