Welcome![Sign In][Sign Up]
Location:
Search - code matlab for feature extraction from image

Search list

[Special Effectsgaborfilter.tar

Description: Gabor滤波器经常被用于形状检测和特征提取,比如增强指纹图像。本代码用matlab实现了一个二维Gabor滤波器。 代码使用如下: function [G,gabout] = gaborfilter1(I,Sx,Sy,f,theta) from gaborfilter1 with different f(Frequency) and theta(Angle). for example f:0,2,4,8,16,32 theta = 0,pi/3,pi/6,pi/2,3pi/4 then for any input image like(eg. stereo.jpg) you have 6x5 = 30 filtered images. You can choose your desired angles or frequencies. You can put nominaly Sx & Sy = 2,4 or some one else. For instance I tested above example on ( cameraman.tif )(in MATLAB pictures) I = imread( cameraman.tif ) [G,gabout] = gaborfilter1(I,2,4,16,pi/3) figure,imshow(uint8(gabout)) -Gabor filters are often used for shape detection and feature extraction, such as the enhanced fingerprint image. Matlab implementation of the code is a two-dimensional Gabor filter. Use the following code: function [G, gabout] = gaborfilter1 (I, Sx, Sy, f, theta) from ' gaborfilter1' with different f (Frequency) and theta (Angle). For example f: 0,2,4, 8,16,32 theta = 0, pi/3, pi/6, pi/2,3 pi/4 then for any input image like (eg. stereo.jpg) you have 6x5 = 30 filtered images. You can choose your desired angles or frequencies. You can put nominaly Sx & Sy = 2,4 or some one else. For instance I tested above example on (' cameraman.tif' ) (in MATLAB pictures) I = imread (' cameraman.tif' ) [G, gabout] = gaborfilter1 (I, 2,4,16, pi/3) figure, imshow (uint8 (gabout))
Platform: | Size: 1024 | Author: 郑碧波 | Hits:

CodeBus www.codebus.net