- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于OpenCV库的Gabor滤波器的实现
基于OpenCV库的Gabor滤波器的实现??
2011-01-07 13:15:15|??分类:?代码天地?|??标签:gabor滤波器??opencv??程序??代码??|字号?订阅
前几篇日志介绍了Gabor滤波器,我在OPENCV上编了一个Gabor核类,望各位看客指正。
参考公式:
???
/**********************************************************Author XJ Shi.??? FileName: Gabor.h
shi-xj@163.com
Define the class head to Gabor Filter
@ 2011.1.2***********************************************************/
#ifndef _GABOR_H#define _GABOR_H#include stdio.h#include iostream//#include stdafx.h#include cv.h
#define PI 3.14159#define GAMMA? 0.5?? //The default value of γ,which is the spatial aspect ratio (sigma_x/sigma_y)#define RATIO_S2L 0.56? //The default value of σ/λclass Gabor {
public:??//@construct??Gabor(float dLambda, float dTheta,float dRatio_S2L = RATIO_S2L, float dGamma = GAMMA,float dPhi = 0);?//@abolish?~Gabor();
?//@init?void init(float dLambda,float dTheta, float dPhi,float dGamma = GAMMA);?//@init?void init(float dSigma, float dTheta, float dPhi);?//@init?void init();
????//@To?find whether the Gabor kernel is created?bool is_kernel(){ return bKernel; }?//@To?find whether the parameters is inited?bool is_init() { return bInit; }?//@To?find whether the parameters inited is enough?bool is_param() { return bParam; }?//@Get?the kernel in matrix form?CvMat* get_Mat() { return pGaborfilter; }?//@Get?the kernel in image form?IplImage* get_Imge();?//@Do?the filtering operation to input image with Gabor kernel?IplImage* do_filter(const IplImage *src);
protected:?bool bParam;?????????? //bool , if the parameters inited are enough?bool bKernel;????????? //bool?bool bInit;?????????? //bool?float Lambda;??????? //Wavelength of the cosine factor, which represent the central frequency of Gabor filter??float Theta;???????? //Orientation of the Gabor function, the axis x?float Sigma;????????? // The standard deviation of x, and for y , it is Sigma/Gamma;?float Gamma;??????? // The spatial aspect ratio?float Phi;?????????? //The phase offset of Gabor?CvSize GaborWindow;?
您可能关注的文档
最近下载
- 新能源车辆在交通运输中的应用与推广.pptx VIP
- SULZER苏尔寿大型潜水混流泵潜水泵ABS AFLX系列产品手册.pdf
- 附件1:一公司-住宅项目工序穿插技术指南.pdf VIP
- 骨髓细胞学检查图文报告单范本.docx VIP
- 血液透析患者营养不良的评估与治疗PPT.pptx VIP
- 水浒传梗概1到100回.pdf VIP
- 人教版六年级数学上册全册教材全面分析.pdf VIP
- 《中外学前教育史》教案 第17课 夸美纽斯、卢梭和裴斯泰洛齐的学前教育理论.pdf
- 大学军事理论课教程第三章军事思想第四节当代中国军事思想.pptx
- 2025-2026学年初中化学人教版2024九年级上册-人教版2024说课稿合集.docx
文档评论(0)