data_loader_IQA.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:IQA_BIECON_release 作者: jongyookim 项目源码 文件源码
def local_normalize_1ch(img, const=127.0):
    mu = convolve(img, kern, mode='nearest')
    mu_sq = mu * mu
    im_sq = img * img
    tmp = convolve(im_sq, kern, mode='nearest') - mu_sq
    sigma = np.sqrt(np.abs(tmp))
    structdis = (img - mu) / (sigma + const)

    # Rescale within 0 and 1
    # structdis = (structdis + 3) / 6
    structdis = 2. * structdis / 3.
    return structdis
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号