资源简介

Gabor的matlab程序,Gabor滤波是一种不错的特征提取方法,尤其在图像处理应用广泛

资源截图

代码片段和文件信息

clear;
clc;
% I1=imread(‘city.jpg‘);
I1=imread(‘1.bmp‘);
figure(1) imshow(I1);
title(‘原图像‘);
% I2=rgb2gray(I1);
I2=I1;
figure(2)imhist(I2);
figure(3)imshow(I2);
I3=histeq(I2);
figure(4)imhist(I3);
I4=double(I3);
figure(5);
[Ggabout] = gaborfilter(I40.510.560);
subplot(221)imshow(uint8(gabout));
title(‘theta=0‘);
[Ggabout] = gaborfilter(I40.510.56pi/8);
subplot(222)imshow(uint8(gabout));
title(‘theta=pi/8‘);
[Ggabout] = gaborfilter(I40.510.56pi/4);
subplot(223)imshow(uint8(gabout));
title(‘theta=pi/4‘);
[Ggabout] = gaborfilter(I40.510.56pi*3/8);
subplot(224)imshow(uint8(gabout));
title(‘theta=pi*3/8‘);
figure(6);
[Ggabout] = gaborfilter(I40.510.56pi/2);
subplot(221)imshow(uint8(gabout));
title(‘theta=pi/2‘);
[Ggabout] = gaborfilter(I40.510.56pi*5/8);
subplot(222)imshow(uint8(gabout));
title(‘theta=pi*5/8‘);
[Ggabout] = gaborfilter(I40.510.56pi*3/4);
subplot(223)imshow(uint8(gabout));
title(‘theta=pi*3/4‘);
[Ggabout] = gaborfilter(I40.510.56pi*7/8);
subplot(224)imshow(uint8(gabout));
title(‘theta=pi*7/8‘);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      66614  2010-10-23 16:53  Gabor\1.bmp

     文件       1114  2010-10-23 16:53  Gabor\gabor.m

     文件       1104  2010-10-23 16:53  Gabor\gaborfilter.m

     文件        996  2010-10-23 16:53  Gabor\Gaborwave.m

     目录          0  2010-10-27 20:05  Gabor

----------- ---------  ---------- -----  ----

                69828                    5


评论

共有 条评论