#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#define CV_COMP_CORREL 0
#define CV_COMP_CHISQR 1
#define CV_COMP_INTERSECT 2
#define CV_COMP_BHATTACHARYYA 3
int HistogramBins = 256;
float HistogramRange1[2]={0,255};
float *HistogramRange[1]={&HistogramRange1[0]};
int main()
{
//目标图片
IplImage *Image1=cvLoadImage("c:\\face\\s1\\10.jpg",0);// //("C:\\ruita\\2013-8\\openCV_from_2013.8.5\\CVprj01\\CVprj01\\1.jpg",0);//如果没有对象,直接输出为完美匹配
//IplImage *Image1=cvLoadImage("c:\\face\\pgm\\s1\\10.jpg",0);
char path[20]="c:\\face\\s";//
//char path[20]="c:\\face\\pgm\\s";
char who[20][20]={"1\\","2\\","3\\","4\\","5\\","6\\"}; //c:\\face\\s1\\//
char s[11][3]={"1","2","3","4","5","6","7","8","9","10"}; //c:\\face\\s1\\1
char way[20]="c:\\face\\s";
double thre = 20.0;//阈值//下面的程序推荐5000以下,其实也不可能用到5000,官方给的更大1.7*10^308
double res;//对比结果
double sum_res=5000.0,avr_res=5001.0,ores[3]={5000.0,5000.0,5000.0};/
#include "cxcore.h"
#include "highgui.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#define CV_COMP_CORREL 0
#define CV_COMP_CHISQR 1
#define CV_COMP_INTERSECT 2
#define CV_COMP_BHATTACHARYYA 3
int HistogramBins = 256;
float HistogramRange1[2]={0,255};
float *HistogramRange[1]={&HistogramRange1[0]};
int main()
{
//目标图片
IplImage *Image1=cvLoadImage("c:\\face\\s1\\10.jpg",0);// //("C:\\ruita\\2013-8\\openCV_from_2013.8.5\\CVprj01\\CVprj01\\1.jpg",0);//如果没有对象,直接输出为完美匹配
//IplImage *Image1=cvLoadImage("c:\\face\\pgm\\s1\\10.jpg",0);
char path[20]="c:\\face\\s";//
//char path[20]="c:\\face\\pgm\\s";
char who[20][20]={"1\\","2\\","3\\","4\\","5\\","6\\"}; //c:\\face\\s1\\//
char s[11][3]={"1","2","3","4","5","6","7","8","9","10"}; //c:\\face\\s1\\1
char way[20]="c:\\face\\s";
double thre = 20.0;//阈值//下面的程序推荐5000以下,其实也不可能用到5000,官方给的更大1.7*10^308
double res;//对比结果
double sum_res=5000.0,avr_res=5001.0,ores[3]={5000.0,5000.0,5000.0};/