先介绍几个函数。 1、图像融合 void cvAddWeighted( const CvArr* src1, double alpha,const CvArr* src2, double beta,double gamma, CvArr* dst ); src1 :第一个原数组. alpha :第一个数组元素的权值 src2 :第二个原数组 beta :第二个数组元素的权值 dst :输出
#include<stdio.h>
#include<cv.h>
#include<highgui.h>
#include "math.h"
IplImage *Igray=0,*It=0,*Iat;
//cvAdaptiveThreshold(src,dst,max_val,adaptive_method,threshold_type,block_size,param1)
//上述方法有两种不同