过滤器组的 Opencv getGaborKernel 参数
Opencv getGaborKernel parameters for filter bank
opencv如何获取GaborKernel函数参数相关的orientation和scale参数?
我假设 theta 是方向,但什么是比例?
//! 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 个方向的例子:
更新:
我也找到了这个参数解释:
http://matlabserver.cs.rug.nl/edgedetectionweb/web/edgedetection_params.html
参数含义如下:
ksize
返回的过滤器大小。
sigma
高斯包络的标准偏差。
theta
Gabor 函数平行条纹的法线方向。
lambda
正弦因子的波长。
gamma
空间纵横比。
psi
相位偏移。
ktype
滤波器系数的类型。它可以是 CV_32F
或 CV_64F
.
可以通过 theta
修改方向,通过 lambda
修改比例。这里有一个关于 What do the Gabor filter parameters mean?. Update September 2020: The link to What do the Gabor filter parameters mean? no longer works. Try Through The Eyes of Gabor Filter 的很好的教程。
我也附上上面网站的图片:
所有
opencv如何获取GaborKernel函数参数相关的orientation和scale参数?
我假设 theta 是方向,但什么是比例?
//! 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 个方向的例子:
更新:
我也找到了这个参数解释: http://matlabserver.cs.rug.nl/edgedetectionweb/web/edgedetection_params.html
参数含义如下:
ksize
返回的过滤器大小。sigma
高斯包络的标准偏差。theta
Gabor 函数平行条纹的法线方向。lambda
正弦因子的波长。gamma
空间纵横比。psi
相位偏移。ktype
滤波器系数的类型。它可以是CV_32F
或CV_64F
.
可以通过 theta
修改方向,通过 lambda
修改比例。这里有一个关于 What do the Gabor filter parameters mean?. Update September 2020: The link to What do the Gabor filter parameters mean? no longer works. Try Through The Eyes of Gabor Filter 的很好的教程。
我也附上上面网站的图片: