• 大小: 5KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-18
  • 语言: 其他
  • 标签: 滤波  

资源简介

利用Gabor滤波器对图像进行处理目标检测与跟踪,车辆特征识别,人脸识别,字符识别,特征提取, 图像分割,手势识别,计算机视觉视频教程,opencv基础知识

资源截图

代码片段和文件信息

/***************************************************************************

#include “cvgabor.h“

CvGabor::CvGabor()
{
}


CvGabor::~CvGabor()
{
cvReleaseMat( &Real );
cvReleaseMat( &Imag );
}




/*!
\fn CvGabor::CvGabor(int iMu int iNu double dSigma)
Construct a gabor

Parameters:
iMu The orientation iMu*PI/8
iNu  The scale
dSigma  The sigma value of Gabor

Returns:
None

Create a gabor with a orientation iMu*PI/8 a scale iNu and a sigma value dSigma. The spatial frequence (F) is set to sqrt(2) defaultly. It calls Init() to generate parameters and kernels.
*/
CvGabor::CvGabor(int iMu int iNu double dSigma)

F = sqrt(2.0);
Init(iMu iNu dSigma F);
}


/*!
\fn CvGabor::CvGabor(int iMu int iNu double dSigma double dF)
Construct a gabor

Parameters:
iMu The orientation iMu*PI/8
iNu  The scale
dSigma  The sigma value of Gabor
dF The spatial frequency 

Returns:
None

Create a gabor with a orientation iMu*PI/8 a scale iNu a sigma value dSigma and a spatial frequence dF. It calls Init() to generate parameters and kernels.
*/
CvGabor::CvGabor(int iMu int iNu double dSigma double dF)
{

Init(iMu iNu dSigma dF);

}


/*!
\fn CvGabor::CvGabor(double dPhi int iNu)
Construct a gabor

Parameters:
dPhi The orientation in arc
iNu  The scale

Returns:
None

Create a gabor with a orientation dPhi and with a scale iNu. The sigma (Sigma) and the spatial frequence (F) are set to 2*PI and sqrt(2) defaultly. It calls Init() to generate parameters and kernels.
*/
CvGabor::CvGabor(double dPhi int iNu)
{
Sigma = 2*PI;
F = sqrt(2.0);
Init(dPhi iNu Sigma F);
}


/*!
\fn CvGabor::CvGabor(double dPhi int iNu double dSigma)
Construct a gabor

Parameters:
dPhi The orientation in arc
iNu  The scale
dSigma The sigma value of Gabor

Returns:
None

Create a gabor with a orientation dPhi a scale iNu and a sigma value dSigma. The spatial frequence (F) is set to sqrt(2) defaultly. It calls Init() to generate parameters and kernels.
*/
CvGabor::CvGabor(double dPhi int iNu double dSigma)
{

F = sqrt(2.0);
Init(dPhi iNu dSigma F);
}


/*!
\fn CvGabor::CvGabor(double dPhi int iNu double dSigma double dF)
Construct a gabor

Parameters:
dPhi The orientation in arc
iNu  The scale
dSigma  The sigma value of Gabor
dF The spatial frequency 

Returns:
None

Create a gabor with a orientation dPhi a scale iNu a sigma value dSigma and a spatial frequence dF. It calls Init() to generate parameters and kernels.
*/
CvGabor::CvGabor(double dPhi int iNu double dSigma double dF)
{

Init(dPhi iNu dSigmadF);
}

/*!
\fn CvGabor::IsInit()
Determine the gabor is initilised or not

Parameters:
None

Returns:
a boolean value TRUE is initilised or FALSE is non-initilised.

Determine whether the gabor has been initlized - variables F K Kmax Phi Sigma are filled.
*/
bool CvGabor::IsInit()
{

return bInitialised;
}

/*!
\fn CvGabor::mask_width()
Give out the width of the mask

Parameters:
None

Returns:
The long type show the w

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .CA....      2794  2008-04-07 12:47  cvgabor.h

     文件      16811  2015-05-06 11:43  cvgabor.cpp

----------- ---------  ---------- -----  ----

                19605                    2


评论

共有 条评论