?? 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 + -