- 衡量两幅图像的相似度:
- SNR/PSNR
- SSIM
1. SNR vs PSNR
- MSE:mean squared error ∑x=1Nx∑y=1Ny(f(x,y)−f^(x,y))2NxNy
- f(x,y):表示原始的信号/图像;
- f^(x,y):则表示处理后的信号/图像;
SNR(dB):
10⋅log10⎡⎣⎢⎢⎢⎢⎢∑x=1Nx∑y=1Nyf(x,y)2∑x=1Nx∑y=1Ny(f(x,y)−f^(x,y))2⎤⎦⎥⎥⎥⎥⎥PSNR(dB):
10⋅log10⎡⎣⎢⎢⎢⎢⎢NxNy2552∑x=1Nx∑y=1Ny(f(x,y)−f^(x,y))2⎤⎦⎥⎥⎥⎥⎥=20⋅log10255MSE
2. SSIM
SSIM(structural similarity index),结构相似性,是一种衡量两幅图像相似度的指标。
转载于:https://www.cnblogs.com/mtcnn/p/9423000.html