FD = gfd(bw,m,n) - Implementation of the Generic Fourier Descriptors

版本 1.0.0.0 (16.2 KB) 作者: Frederik Kratzert
Calculates the Generic Fourier Descriptors following the Publication of D. Zhang & G. Lu (2002)
2.0K 次下载
更新时间 2016/8/30

查看许可证

This function is an implementation of the Generic Fourier Descriptor (GFD) proposed by D. Zhang and G.Lu in their publication "Shape-based image retrieval using generic fourier descriptors".
GFD's are one of the leading shape descriptors and are used for a lot of shape classification tasks. This function calculates for the input image BW the GFD up to the radial frequency defined by M and the angular frecuency defined by N.
A Requirement for the correct calculation is, that the binary image only contains one single object and that the object is centered by its Centroid to the image center.
You can use the centerobject(bw) function to help you centering objects correctly:
http://www.mathworks.com/matlabcentral/fileexchange/52560-centerobject-bw-
GFD are translation, scale and rotation invariant as explained in the Paper of Zhang/Lu.
I added an example-file as for demonstration purpose of the function. The .mat file contains six binary images (3*ray,3*lizard) of the MPEG-7 dataset. For both, ray and lizard, the original image is one time rotated and one time resized. Then for all variations the GFD's are calculated and compared by the Cityblock-Distance.
(I wrote this function with Matlab 8.1 (R2013a) but i am pretty sure it will work with older releases)
For any kind of bug report/questions/suggestions i would be happy if you leave a comment.

引用格式

Frederik Kratzert (2024). FD = gfd(bw,m,n) - Implementation of the Generic Fourier Descriptors (https://www.mathworks.com/matlabcentral/fileexchange/52643-fd-gfd-bw-m-n-implementation-of-the-generic-fourier-descriptors), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

updated *.zip archive
updated description
updated small bug in the code