滤波器组的Opencv getGaborKernel参数 [英] Opencv getGaborKernel parameters for filter bank

查看:188
本文介绍了滤波器组的Opencv getGaborKernel参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

opencv的getGaborKernel函数参数如何与方向和比例参数相关?

How opencv getGaborKernel function parameters related to orientation and scale parameters?

我认为theta是方向,但是什么是尺度?

I assume theta is orientation, but what refers to scale?

//!返回具有指定参数的Gabor内核 CV_EXPORTS_W Mat getGaborKernel(Size ksize,double sigma,double theta,双lambd,双gamma,双psi = CV_PI * 0.5,int ktype = CV_64F);

//! returns the Gabor kernel with the specified parameters CV_EXPORTS_W Mat getGaborKernel( Size ksize, double sigma, double theta, double lambd,double gamma, double psi=CV_PI*0.5, int ktype=CV_64F );

以下是示例5个比例尺和8个方向:

Here is example 5 scales and 8 orientations:

更新:

我也找到了这个参数的解释: http://matlabserver.cs.rug.nl/edgedetectionweb/web/edgedetection_params.html

Also I found this parameter explanation: http://matlabserver.cs.rug.nl/edgedetectionweb/web/edgedetection_params.html

推荐答案

以下是参数的含义:

  • ksize返回的过滤器的大小.
  • sigma高斯包络线的标准偏差.
  • theta法线与Gabor函数的平行条纹的方向.
  • lambda正弦因子的波长.
  • gamma空间纵横比.
  • psi相位偏移.
  • ktype滤波器系数的类型.可以是CV_32FCV_64F.
  • ksize Size of the filter returned.
  • sigma Standard deviation of the gaussian envelope.
  • theta Orientation of the normal to the parallel stripes of a Gabor function.
  • lambda Wavelength of the sinusoidal factor.
  • gamma Spatial aspect ratio.
  • psi Phase offset.
  • ktype Type of filter coefficients. It can be CV_32F or CV_64F.

可以通过theta修改方向,也可以通过lambda修改比例.在这里,您有一个很好的教程,关于 Gabor过滤器做什么参数是什么意思? .

The orientation can be modified by theta and the scale by i.e. lambda. Here you have a good tutorial about What do the Gabor filter parameters mean?.

我还附上了上面网站的图片:

I also attach the image from the site above:

Juergen Muller

这篇关于滤波器组的Opencv getGaborKernel参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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