滤波器组的Opencv getGaborKernel参数 [英] Opencv getGaborKernel parameters for filter bank
问题描述
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_32F
或CV_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 beCV_32F
orCV_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:
这篇关于滤波器组的Opencv getGaborKernel参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!