資源簡介
本程序是用openCV開發的人臉識別程序。該技術是基于gabor濾波算法的人臉特征提取算法
代碼片段和文件信息
#include?
#include?
#include?
#include??//輸入輸出流
void?main()
{
//定義形參
int?classNumtrainNumstart;?? //?classNum類,trainNum張接口數據
classNum=40;
trainNum=5;?
start=1;
//設定gabor濾波器函數
double?pi=3.1415926;
double?u=0.0916;
const?int?size=17;
int?msize=(size-1)/2;
double?sigma;
int?n_thetan_sigma;//幅角參數
double?filterg[size][size];
int?n=1;//濾波器個數
//提取圖片參數
int?ij;
int?heightwidthstepchannels;
uchar?*data;
char?phN[100]=“D:\\orl\\orl_0_1.bmp“;???//接口數據
IplImage*?imga=cvLoadImage(phN);
height???=imga->height;
width????=imga->width;
step?????=imga->widthStep/sizeof(uchar);//step=width*sizeof(uchar)*channel
channels?=imga->nChannels;
cvReleaseImage(&imga);
imga=NULL;
CvMat*?A=c
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????22104??2010-12-14?22:36??20濾波(0.88)\20_gaobor.cpp
?????文件???????3607??2010-11-13?15:30??20濾波(0.88)\20_gaobor.dsp
?????文件????????526??2010-11-13?15:30??20濾波(0.88)\20_gaobor.dsw
?????文件??????41984??2010-12-14?23:39??20濾波(0.88)\20_gaobor.ncb
?????文件??????54784??2010-12-14?23:39??20濾波(0.88)\20_gaobor.opt
?????文件????????818??2010-12-14?23:08??20濾波(0.88)\20_gaobor.plg
?????文件?????229489??2010-12-14?23:08??20濾波(0.88)\Debug\20_gaobor.exe
?????文件?????242376??2010-12-14?23:08??20濾波(0.88)\Debug\20_gaobor.ilk
?????文件??????38842??2010-12-14?23:08??20濾波(0.88)\Debug\20_gaobor.obj
?????文件????4175244??2010-12-14?21:58??20濾波(0.88)\Debug\20_gaobor.pch
?????文件?????517120??2010-12-14?22:36??20濾波(0.88)\Debug\20_gaobor.pdb
?????文件?????189440??2010-12-14?23:08??20濾波(0.88)\Debug\vc60.idb
?????文件?????110592??2010-12-14?22:36??20濾波(0.88)\Debug\vc60.pdb
?????目錄??????????0??2010-12-14?22:36??20濾波(0.88)\Debug
?????目錄??????????0??2010-12-14?23:39??20濾波(0.88)
-----------?---------??----------?-----??----
??????????????5626926????????????????????15
評論
共有 條評論