图像融合
img1 = cv.imread('sample_dog.jpg')
img2 = cv.imread('opencv-logo.png')
img1.shape
# (576, 768, 3)
img2.shape
# (99, 82, 3)
img1=cv.resize(img1,(82,99))
# 图像维度必须一样
dst = cv.addWeighted(img1,0.7,img2,0.3,0)
cv.imshow('dst',dst)
cv.waitKey(0)
cv.destroyAllWindows()