记录一次求图像相似度求解过程

本人测试一枚,对于APP 浏览器兼容性行业或现有平台都是对页面资源优化、页面加载时间等,对于不同手机、不同屏幕尺寸、不同app browser样式的兼容,没有给出明确的说明,说到这里我们就来求解这个问题。
1. 图像相似度的概念定义涉及内容很多,可以参考如下:http://www.jsjkx.com/jsjkx/ch/reader/create_pdf.aspx?file_no=20160615&year_id=2016&quarter_id=6&falg=1
2. 图像相似度算法(一) 直方图
http://blog.csdn.net/gzlaiyonghao/article/details/2325027
3. 图像相似度算法(二)比如: PSNR、IW-PSNR 可以参考如下:
- 各种算法定义(英文) https://ece.uwaterloo.ca/~z70wang/research/iwssim/
- 各种算法定义 (中文) http://www.cnblogs.com/vincent2012/archive/2012/10/13/2723152.html
http://blog.csdn.net/ecnu18918079120/article/details/60149864
- msssim 实现 https://github.com/tensorflow/models/blob/master/research/compression/image_encoder/msssim.py
如果是python3运行,请添加tf.gfile.FastGFile打开文件方式,如:tf.gfile.FastGFile(FLAGS.original_image, ‘rb’)

tensorflow msssim 是目前相似度识别比较高的 脚本如下:

#!/usr/bin/python
#
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

"""Python implementation of MS-SSIM.
Usage:
python msssim.py --original_image=original.png --compared_image=distorted.png
"""
import numpy <
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值