matlab图像几何变换和图像增强.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
matlab图像几何变换和图像增强

一.图像几何变化 放大,缩小,旋转 程序: I=imread(111.jpg); J=imresize(I,1.5); L=imresize(I,0.75); K=imrotate(I,35,bilinear); subplot(221),subimage(I); title(原图像); subplot(222),subimage(J); title(放大后图像); subplot(223),subimage(L); title(缩小后图像); subplot(224),subimage(K);title(旋转后图像); 二.图像频域变换 傅里叶变换 真彩图像 灰度图像 傅里叶变换谱 程序:I=imread(111.jpg); figure(1); imshow(I); B=rgb2gray(I); figure(2); imshow(B) D=fftshift(fft2(B)); figure(3); imshow(log(abs(D)),[ ]); 离散余弦变换 真彩图 灰度图 进行离散余弦变换后 程序: RGB=imread(111.jpg); figure(1); imshow(RGB); G=rgb2gray(RGB); figure(2); imshow(G); DCT=dct2(G); figure(3); imshow(log(abs(DCT)),[]); 三.图像增强: 指数变换 程序: f=imread(111.jpg) f=double(f); g=(2^2*(f-1))-1; f=uint8(f); g=uint8(g); subplot(1,2,1),subimage(f); subplot(1,2,2),subimage(g); 直方图均衡 程序: I=imread(111.jpg); I=rgb2gray(I); figure subplot(221);imshow(I); subplot(222);imhist(I) I1=histeq(I); figure; subplot(221);imshow(I1) subplot(222);imhist(I1) 空域滤波增强 (锐化滤波(Roberts算子 Sobel算子 拉普拉斯算子) 程序: I=imread(000.tif); J1=edge(I,roberts); %Roberts算子 figure; imshow(uint8(I));title(原图); figure; subplot(221);imshow(J1);title(Roberts算子锐化); J2=fspecial(Sobel); %Sobel算子 J2=J2; TJ1=filter2(J2,I); J2=J2; TJ2=filter2(J2,I); subplot(222),imshow(TJ1,[]),title(垂直模板); subplot(223),imshow(TJ2,[]),title(水平模板); f=fspecial(laplacian); %拉普拉斯算子 J3=imfilter(I,f); subplot(224),imshow(J3);title(拉普拉斯算子); (平滑滤波及中值滤波 程序: I=imread(000.tif); J=imnoise(I,salt pepper,0.02); subplot(221),imshow(I);title(原图像); subplot(222),imshow(J);title(添加椒盐噪声图像); k1=filter2(fspecial(average,3),J); %进行3*3模板平滑滤波 k2=medfilt2(J); %进行3*3模板中值滤波 subplot(223),imshow(uint8(k1));title(3*3模板平滑滤波); subplot(224),imshow(k2);title(3*3模板中值滤波); 频域滤波增强 (低通滤波 程序: I=imread(000.tif); J=imnoise(I,salt pepper,0.02); subplot(121),imshow(J);title(添加椒盐噪声图像); J=do

文档评论(0)

整理王 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档