只用来记录学习笔记
线性合并:
double alpha = 0.5;
if (src1.rows == src2.rows&&src1.cols == src2.cols&&src1.type() == src2.type()) {
addWeighted(src1, alpha, src2, (1.0 - alpha), 0.0, dst);
imshow("blend demo", dst);
namedWindow("input1", CV_WINDOW_AUTOSIZE);
imshow("input1", src1);
namedWindow("input2", CV_WINDOW_AUTOSIZE);
imshow("input2", src2);
}else{
cout << "size not same" << endl;
return -1;
}
效果图:
相乘:
multiply(src1, src2, dst, 0.6);
来源:CSDN
作者:没有改不了的bug
链接:https://blog.csdn.net/weixin_44177447/article/details/104443259