输出结果
代码实现
def Ssim(img_path1,img_path2):
from skimage.measure import compare_ssim
img2 = np.resize(img2, (img1.shape[0], img1.shape[1], img1.shape[2]))
ssim = compare_ssim(img1, img2, multichannel=True)
return ssim
2022-04-02 03:59:53
def Ssim(img_path1,img_path2):
from skimage.measure import compare_ssim
img2 = np.resize(img2, (img1.shape[0], img1.shape[1], img1.shape[2]))
ssim = compare_ssim(img1, img2, multichannel=True)
return ssim