Skip to content

SSIM - Structural similarity #65

@junxnone

Description

@junxnone
  • 用于比较两张图片的相似性
  • 评估失真图像的品质

Reference

Brief

定义: image

比较亮度 image
比较对比度 image
比较结构 image
image x 的平均值
image y 的平均值
image x 的标准差
image y 的标准差
image x y 的协方差

使用

  • image
  • image
    得:
    image
参数
c1 image
k1 image
c2 image
k2 image
L 像素值的动态范围,若为 8-bit 深度的图像, 则 L 值为 2^8-1=255

性质

对称性 image
取值范围 [-1, 1] , 当完全相同时为 1

完全相同时

  • image
  • image

image

scikit-image - compare_ssim() - structural_similarity()

  • compare_ssim() 0.18 会被弃用 替换为 structural_similarity()

skimage.measure.compare_ssim(X, Y, win_size=None, gradient=False, data_range=None, multichannel=False, gaussian_weights=False, full=False, **kwargs)

skimage.metrics.structural_similarity(im1, im2, *, win_size=None, gradient=False, data_range=None, multichannel=False, gaussian_weights=False, full=False, **kwargs)

发展

  • CW-SSIM - complex wavelet SSIM - 复小波结构相似性
  • SSIMplus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions