ssim_noise, ssim_denoised = compare_ssim(img_clean, img_test), compare_ssim(img_clean, img_out) psnr.append(psnr_denoised) ssim.append(ssim_denoised)# save imagesfilename = file.split('/')[-1].split('.')[0]# get the name of image filename.append(filename) img_test = Image.f...
# 需要导入模块: from skimage import measure [as 别名]# 或者: from skimage.measure importcompare_psnr[as 别名]defcompare(inp_img, out_img, calc_ssim=True, calc_msssim=True, calc_psnr=True):inp_img = _read_if_not_array(inp_img) out_img = _read_if_not_array(out_img)assertinp_img....