#include<opencv2\opencv.hpp>
#include<iostream>
using namespace cv;
int main()
{
Mat src1=imread("aa.jpg");
Mat src2=imread("bb.jpg");
Mat dst,dst1,dst2;
if(src1.empty()||src2.empty())
{
printf("加载失败\n");
return -1;
}
double alpha=0.4;
if(src1.rows==src2.rows&&src1.cols==src2.cols&&src1.type()==src2.type())
{
addWeighted(src1,alpha,src2,(1.0-alpha),0.0,dst);
imshow("dst",dst);
add(src1,src2,dst1,Mat());
imshow("dst1",dst1);
multiply(src1,src2,dst2,0.01);
imshow("dst2",dst2);
}
waitKey(0);
return 0;
}