xujinfu.m
字号:
clear;
close all;
x1=imread('1.bmp');
x11=rgb2gray(x1);
PSF=fspecial('motion',10,0);
y1=deconvwnr(x11,PSF);%维纳滤波
subplot(1,2,1),imshow(x1);
subplot(1,2,2),imshow(y1);
x2=imread('2.bmp');
x21=rgb2gray(x2);
y2=wiener2(x21);%维纳滤波
subplot(1,2,1),imshow(x2);
subplot(1,2,2),imshow(y2);
x3=imread('3.bmp');
x31=rgb2gray(x3);
y3=medfilt2(x31);%中值滤波
subplot(1,2,1),imshow(x3);
subplot(1,2,2),imshow(y3);
x4=imread('4.bmp');
x41=rgb2gray(x4);
y4=imadjust(x41);%直方图灰度变换
subplot(1,2,1),imshow(x4);
subplot(1,2,2),imshow(y4);
x5=imread('5.bmp');
x51=rgb2gray(x5);
y5=histeq(x51);%直方图均衡化
subplot(1,2,1),imshow(x5);
subplot(1,2,2),imshow(y5);
x6=imread('6.bmp');
x61=rgb2gray(x6);
SE=ones(5,5);
y6=imdilate(x61,SE);%图像腐蚀
subplot(1,2,1),imshow(x6);
subplot(1,2,2),imshow(y6);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -