psnr_noisy =compare_psnr(img, noisy) psnr_denoised =compare_psnr(img, denoised)assertpsnr_denoised > psnr_noisy# Test changing noise_std (higher threshold, so less energy in signal)res1 = restoration.denoise_wavelet(noisy, sigma=2*sigma, multichannel=multichannel) res2 = restoration.denoise_...
开发者ID:fab-jul,项目名称:imgcomp-cvpr,代码行数:21,代码来源:compare_imgs.py 示例2: slice_process ▲点赞 6▼ # 需要导入模块: from skimage import measure [as 别名]# 或者: from skimage.measure importcompare_psnr[as 别名]defslice_process(x1, x2, y):iflen(x1.shape) ==3: x1 = x1[...