绘制三维曲线
clear all
clc
[x,y]=meshgrid(-8:0.5:8);
R=sqrt(x.^2+y.^2)+eps;% eps 位极小量,不加根号下的式子无法直接画出
z=sin(R)./R;
mesh(x,y,z)
图像模糊
clear all
close all
clc
a=20;%水平
b=20;%角度
I=imread('haha.jpg');
I=im2double(I);
PSF=fspecial('motion',a,b);
L=imfilter(I,PSF); %运动模糊
imshow(L);figure;
%%维纳滤波复原
J=deconvwnr(L,PSF,0.04);
imshow(J);title('维纳滤波复原图');
图像锐化
clear all
clc
I=imread('haha.jpg');