- Matlab读取图像:imread();
- Matlab创建滤波器:h = fspecial(type, parameters);
- Matlab滤波器三维图像:surf(h);
- Matlab滤波器二维图像:imagesc(h);
- Matlab图像滤波:imfilter(I,h);
[code lang="matlab"]
I=imread('a.jpg');
figure;
subplot(2,2,1);
imshow(I);
%% create gaussian filter
h=fspecial('gaussian',61,15);
subplot(2,2,2);
surf(h);
subplot(2,2,3);
imagesc(h);
%% filtering
fI=imfilter(I,h);
subplot(2,2,4);
imshow(fI);
[/code]
没有评论:
发表评论
谢谢您的留言^_^