- 3
- 0
- 约7.07千字
- 约 21页
- 2019-06-08 发布于浙江
- 举报
一·图像灰度增强
I=imread(‘coins.png’);
Subplot(121);imshow(I);
title(‘原图’);
J=imadjust(I);
subplot(122);imshow(J);
title(‘灰度调整’);
I=imread(‘coins.png’);
Subplot(121);imshow(I);
title(‘原图’);
J=imadjust(I,[0.3;0.8],[0.6;1]);
subplot(122);imshow(J);
title(‘指定灰度范围的图像增强’);
I=imread(‘coins.png’);
Subplot(221);imshow(I);
title(‘原图’);
J1=imadjust(I,[0.3;0.8],[0.6;1],0.2);
subplot(222);imshow(J1);
title(‘\it(r)=0.2’);
J2=imadjust(I,[0.3;0.8],[0.6;1],1);
subplot(223);imshow(J2);
title(‘\it(r)=1’);
J3=imadjust(I,[0.3;0.8],[0.6;1],5);
subplot(224);imshow(J3);
title(‘\it(r)=5’);
二、增强红绿蓝调色板
J=imread(peppers.png);
subplot(221),imshow(J);
title(原图);
K0=imadjust(J,[0.2 0.3 0; 0.6 0.7 0.6],[],0.2);
subplot(222),imshow(K0);
title(\it{r}=0.2);
K1=imadjust(J,[0.2 0.3 0; 0.8 0.9 1],[],1);
subplot(223),imshow(K1);
title(\it{r}=1);
K2=imadjust(J,[0.2 0.3 0; 0.8 0.9 1],[],5);
subplot(224),imshow(K2);
title(\it{r}=5);
三、图像求反
I=imread(kids.tif);
subplot(121),imshow(I);
title(原图);
J=imadjust(I,[0 1],[1,0]);
subplot(122),imshow(J);
title(图像求反);
四、直方图
J=imread(tire.tif);subplot(2,4,1),imshow(J);
subplot(2,4,5),imhist(J,16);
J=imread(pout.tif);subplot(2,4,2),imshow(J);
subplot(2,4,6),imhist(J,32);
J=imread(liftingbody.png);subplot(2,4,3),imshow(J);
subplot(2,4,7),imhist(J,128);
J=imread(cameraman.tif);subplot(2,4,4),imshow(J);
subplot(2,4,8),imhist(J,256);
五、直方图均衡化
I=imread(tire.tif);
J=histeq(I);
subplot(2,2,1),imshow(I);
subplot(2,2,2),imshow(J);
subplot(2,2,3),imhist(I,128);
subplot(2,2,4),imhist(J,128);
六、频域高通滤波图像增强
I=imread(rice.png);
subplot(311),imshow(I);
title(原图);
I=medfilt2(I,[3,3]);
[M,N]=size(I);
F=fft2(I);
fftshift(F);
Dcut=I;
for u=1:M
for v=1:N
D(u,v)=sqrt(u^2 + v^2);
BUIIERH(u,v)=1/(1+(sqrt(2)-1)*Dcut/D(u,v)^2);
EXPOIH(u,v)=exp(log(1/sqrt(2))*(Dcut/D(u,v))^2);
end
end
BUIIERG=BUIIERH.*F;
BUIIERfiltered=ifft2(BUIIERG);
EXPOIG=EXPOIH.*F;
EXPOIGfiltered=ifft2(EXPOIG);
subplot(312),imshow(BUIIERfiltered);
title(巴特沃斯高通滤波器);
subplot(313),imshow(EXPOIGfiltere
您可能关注的文档
- (三)职业病危害项目申报制度.docx
- (部编)人教语文2011课标版一年级下册书写提示-日积月累.docx
- AIX操作系统升级过程.docx
- ArcGIS-某地区地块的拓扑关系建立-实验报告.docx
- Cdxntfe会计学研究生录取考试科目及参考书目.doc
- E138提升机中高压液压站.doc
- EBU客户化开发UAP业务提升手册(V890版)-v1.1.doc
- KNT-WP01型-风光互补发电实训系统1.doc
- nios2移植uClinux硬件架构.doc
- Solidedge产品设计规范.docx
- 山西天一大联考2025-2026学年高二上学期期末学情监测语文试题(试卷+解析).docx
- 山西忻州部分学校2025-2026学年高一上学期2月质量检测数学试题(人教B版)(试卷+解析).docx
- 山西运城市2025-2026学年高二第一学期期末调研测试数学试题(试卷+解析).docx
- 陕西省榆林市榆阳区2025-2026学年八年级上学期期末地理试题(试卷+解析).docx
- 陕西西安市碑林区2025-2026学年度第一学期期末八年级生物试题(试卷+解析).docx
- 四川省广元市苍溪县2025-2026年八年级上学期期末道德与法治试题(试卷+解析).docx
- 江苏泰州市姜堰区2025-2026学年七年级上学期1月期末数学试题(试卷+解析).docx
- 江苏省扬州市邗江区2025-2026学年九年级上学期期末考试化学试题(试卷+解析).docx
- 江西上饶市铅山县2025-2026学年第一学期期末考试八年级数学试题(试卷+解析).docx
- 江苏扬州市高邮市2025-2026学年度第一学期期末学业质量监测试题九年级英语(试卷+解析).docx
原创力文档

文档评论(0)