图像融合
import cv2
a = cv2.imread('images/aaa.png')
b = cv2.imread('images/bbb.png')
a = a[:b.shape[0],:b.shape[1],:]
res = cv2.addWeighted(src1=a,alpha=0.3,src2=b,beta=1,gamma=0.3)
cv2.imshow('a',a)
cv2.waitKey(1000)
cv2.imshow('b',b)
cv2.waitKey(1000)
cv2.imshow('res',res)
cv2.waitKey(1000)
cv2.destroyAllWindows()最后更新于