gabor纹理提取

326 篇文章 2 订阅
183 篇文章 6 订阅

NOTE: The following software is provided for research purposes only. You may not distribute this software in any form without the prior approval of the University of California.

NOTE: The following files are NOT well documented and organized, so use them at your own risk. Some test images can be found here

Feature Extraction and Gabor Filtering:

This directory contains the codes for Gabor filtering and texture feature extraction. The strategy of constructing the Gabor filter bank is based on our paper:

  1. B. S. Manjunath and W.Y. Ma,
    "Texture features for browsing and retrieval of image data"
    IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI - Special issue on Digital Libraries), vol. 18, no. 8, pp. 837-42, Aug. 1996.
    VRL ID 36: [abstract] [PDF] [BibTex]

    Abstract preview: "Image content based retrieval is emerging as an important research area with application to digital libraries and multimedia databases. The focus or this paper is on the image processing aspects and ..." [more]

The main program is Gabor.c and matrix.c, and xGabor.c is an example program which shows how to call the Gabor.c function. To compile, type gcc xGabor.c Gabor.c matrix.c -lm Note that the format of input image data is raw (no header, and 1 byte per pixel). see.m is provided to help you view the result (Gabor.R) using matlab. 

output.i / output.r / matrix.h

Matlab Examples

extract_brodatz.m - This program is used to extract the texture features from the 116 Brodatz album texture (49 128x128 images are obtained per class). Brodatz images are not available on this site. 

Fea_Gabor_brodatz.m  - This function compute the image features for each Gabor filter output, it is used for PAMI paper.

gabor.m - This function generate the spatial domain of the Gabor wavelets which are specified by number of scales and orientations and the maximun and minimun center frequency.

loadimg.m - Load a binary raw image file (default = 128x128),  i.e.: A = loadimg('image_name',[width heigth]);

extractName.m - This function extracts names for input images (listed in InputImageNames.m and OutputTextureNames.m). Listed examples are not available.



转载: http://vision.ece.ucsb.edu/texture/software/

2D Gabor滤波器是一种常用的方法,用于提取图像中的纹理信息。在MATLAB中,可以通过使用`gabor`函数来实现。 首先,在MATLAB命令窗口中,输入`gabor`来查看该函数的详细信息和用法。可以看到`gabor`函数的语法格式为: ```matlab g = gabor(wavelength, orientation, params) ``` 其中,`wavelength`是所选择的Gabor滤波器的波长,`orientation`是Gabor滤波器的方向,`params`是其他相关参数。可以根据具体需求设置这些参数的值。 接下来,使用`gabor`函数生成Gabor滤波器: ```matlab g = gabor(wavelength, orientation); ``` 生成的Gabor滤波器可以看作是一个二维矩阵,表示滤波器在空间上的响应。 然后,将生成的Gabor滤波器应用于图像上: ```matlab filteredImage = imfilter(image, g); ``` 其中,`image`是需要提取纹理的图像,`filteredImage`是经过Gabor滤波器滤波后的图像。 最后,可以将`filteredImage`显示出来,以查看Gabor滤波器提取纹理信息: ```matlab imshow(filteredImage); ``` 需要注意的是,这只是对于单个Gabor滤波器的使用方法。如果需要提取多个方向、多个尺度的纹理特征,可以使用循环来遍历不同的`wavelength`和`orientation`值,并将滤波后的图像合并在一起,以构建出更丰富的纹理特征表示。 总结起来,通过`gabor`函数可以实现2D Gabor滤波器的纹理特征提取,具体的使用方法是先生成Gabor滤波器,然后将其应用于图像上,并对滤波后的图像进行可视化。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值