图像质量评估:MAPE和MSE

时间:2019-08-28 16:52:17

标签: image image-processing graphics

与参考图像相比,我正在评估两个不同图像的质量。在路径跟踪中,使用两种不同的重要性采样方法获得了这两个图像。
在查看最新的SIGGRAPH论文时,我看到同时使用了MAPE和MSE。
在我的评估中,结果如下:

图片1
MAPE(参考图像1)= 0.71
MSE(reference,image1)= 100.38

图片2
MAPE(参考,image2)= 0.73
MSE(reference,image2)= 99

在图1中,MAPE得分更高,但MSE则更低。这是什么意思? 这是我计算两种度量的方法:

def MSE(img1, img2):      
        squared_diff = (img1 -img2) ** 2
        mse = np.sum(squared_diff) / (3 * img1.shape[0] * img1.shape[1])    # RGB channels
        return mse
def mean_absolute_percentage_error(y_true, y_pred): 
    return np.mean(np.abs((y_true - y_pred) / (y_true+0.001)))

编辑:更正错误

0 个答案:

没有答案