資源簡介
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
評論
共有 條評論