如何使用opencv获取gabor功能 [英] how to get gabor feature using opencv

查看:618
本文介绍了如何使用opencv获取gabor功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Gabor功能做一些分类工作。但是OpenCV不支持这个功能。你会给出一些实现这个功能的想法。 OpenSource库也行。提前致谢。

I want to use the Gabor feature to do some classification job. But the OpenCV do not support this function. Would you give some idea for implementing this function. OpenSource library is also OK. Thanks in advance.

推荐答案

哦,在opencv中有一个gabor内核:

oh, there is a gabor kernel in opencv:

#include "opencv2/imgproc/imgproc.hpp"

cv::Mat kernel = cv::getGaborKernel(cv::Size(kernel_size,kernel_size), sig, th, lm, gm, ps);
Mat src_f; // img converted to float 
Mat dest;
cv::filter2D(src_f, dest, CV_32F, kernel);

这篇关于如何使用opencv获取gabor功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆