Image Quality Assessment (IQA)是一个快速,精确,可靠的测量视频/图像质量的基于C的库。

它实现了很多流行的算法比如 MS-SSIM, SIMM, MSE 和 PSNR。

其提供的方法在iqa.h中,如下所示:

/** Copyright (c) 2011, Tom Distler (http://tdistler.com)* All rights reserved.** The BSD License** Redistribution and use in source and binary forms, with or without* modification, are permitted provided that the following conditions are met:** - Redistributions of source code must retain the above copyright notice, *   this list of conditions and the following disclaimer.** - Redistributions in binary form must reproduce the above copyright notice,*   this list of conditions and the following disclaimer in the documentation*   and/or other materials provided with the distribution.** - Neither the name of the tdistler.com nor the names of its contributors may*   be used to endorse or promote products derived from this software without*   specific prior written permission.** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE* POSSIBILITY OF SUCH DAMAGE.*/#ifndef _IQA_H_
#define _IQA_H_#include "iqa_os.h"/*** Allows fine-grain control of the SSIM algorithm.*/
struct iqa_ssim_args {float alpha;    /**< luminance exponent */float beta;     /**< contrast exponent */float gamma;    /**< structure exponent */int L;          /**< dynamic range (2^8 - 1)*/float K1;       /**< stabilization constant 1 */float K2;       /**< stabilization constant 2 */int f;          /**< scale factor. 0=default scaling, 1=no scaling */
};/*** Allows fine-grain control of the MS-SSIM algorithm.*/
struct iqa_ms_ssim_args {int wang;             /**< 1=original algorithm by Wang, et al. 0=MS-SSIM* by Rouse/Hemami (default). */int gaussian;         /**< 1=11x11 Gaussian window (default). 0=8x8 linear window. */int scales;           /**< Number of scaled images to use. Default is 5. */const float *alphas;  /**< Pointer to array of alpha values for each scale. Required if 'scales' isn't 5. */const float *betas;   /**< Pointer to array of beta values for each scale. Required if 'scales' isn't 5. */const float *gammas;  /**< Pointer to array of gamma values for each scale. Required if 'scales' isn't 5. */
};/*** Calculates the Mean Squared Error between 2 equal-sized 8-bit images.* @note The images must have the same width, height, and stride.* @param ref Original reference image* @param cmp Distorted image* @param w Width of the images* @param h Height of the images* @param stride The length (in bytes) of each horizontal line in the image.*               This may be different from the image width.* @return The MSE.*/
float iqa_mse(const unsigned char *ref, const unsigned char *cmp, int w, int h, int stride);/*** Calculates the Peak Signal-to-Noise-Ratio between 2 equal-sized 8-bit* images.* @note The images must have the same width, height, and stride.* @param ref Original reference image* @param cmp Distorted image* @param w Width of the images* @param h Height of the images* @param stride The length (in bytes) of each horizontal line in the image.*               This may be different from the image width.* @return The PSNR.*/
float iqa_psnr(const unsigned char *ref, const unsigned char *cmp, int w, int h, int stride);/*** Calculates the Structural SIMilarity between 2 equal-sized 8-bit images.** See https://ece.uwaterloo.ca/~z70wang/publications/ssim.html* @note The images must have the same width, height, and stride.* @param ref Original reference image* @param cmp Distorted image* @param w Width of the images* @param h Height of the images* @param stride The length (in bytes) of each horizontal line in the image.*               This may be different from the image width.* @param gaussian 0 = 8x8 square window, 1 = 11x11 circular-symmetric Gaussian* weighting.* @param args Optional SSIM arguments for fine control of the algorithm. 0 for* defaults. Defaults are a=b=g=1.0, L=255, K1=0.01, K2=0.03* @return The mean SSIM over the entire image (MSSIM), or INFINITY if error.*/
float iqa_ssim(const unsigned char *ref, const unsigned char *cmp, int w, int h, int stride, int gaussian, const struct iqa_ssim_args *args);/*** Calculates the Multi-Scale Structural SIMilarity between 2 equal-sized 8-bit* images. The default algorithm is MS-SSIM* proposed by Rouse/Hemami 2008.** See https://ece.uwaterloo.ca/~z70wang/publications/msssim.pdf and* http://foulard.ece.cornell.edu/publications/dmr_hvei2008_paper.pdf** @note 1. The images must have the same width, height, and stride.* @note 2. The minimum image width or height is 2^(scales-1) * filter, where 'filter' is 11* if a Gaussian window is being used, or 9 otherwise.* @param ref Original reference image* @param cmp Distorted image* @param w Width of the images.* @param h Height of the images.* @param stride The length (in bytes) of each horizontal line in the image.*               This may be different from the image width.* @param args Optional MS-SSIM arguments for fine control of the algorithm. 0* for defaults. Defaults are wang=0, scales=5, gaussian=1.* @return The mean MS-SSIM over the entire image, or INFINITY if error.*/
float iqa_ms_ssim(const unsigned char *ref, const unsigned char *cmp, int w, int h, int stride, const struct iqa_ms_ssim_args *args);#endif /*_IQA_H_*/

源代码下载:http://download.csdn.net/detail/leixiaohua1020/6376741

SourceForge项目页面:http://sourceforge.net/projects/iqa/

项目官方页面:http://tdistler.com/iqa/

开源视频质量评价工具: IQA相关推荐

  1. 开源视频质量评价工具: Evalvid

    Evalvid是一个对在真实或模拟的网络里传输的视频进行质量评价的框架和工具集.除了底层网络的QoS参数的测量,如丢包率,延迟,抖动,Evalvid还提供标准的视频质量评价算法如PSNR和SSIM.它 ...

  2. [总结]视频质量评价技术零基础学习方法

    前段时间略忙,因此一直计划要总结的很多东西都没来得及写,这两天趁着空闲时间写上一篇.以后等时间充裕了再补充一些内容.本文总结一下学习视频质量评价技术的方法.视频质量评价是我研究生阶段主要的工作,包括发 ...

  3. 视频质量评价技术零基础学习方法

    前段时间略忙,因此一直计划要总结的很多东西都没来得及写,这两天趁着空闲时间写上一篇.以后等时间充裕了再补充一些内容.本文总结一下学习视频质量评价技术的方法.视频质量评价是我研究生阶段主要的工作,包括发 ...

  4. 【音视频技术】视频质量评价 MSU VQMT Netflix vmaf

    视频质量评价工具实验文档 实验工具采用全参考的两个工具: MSU VQMT NetFlix vmaf 因为普遍使用psnr来做视频质量评价指标,本实验主要进行测试及对比,故只使用psnr作为两个工具的 ...

  5. 视频主观质量评价工具:MSU Perceptual Video Quality tool

    MSU Perceptual Video Quality tool是莫斯科国立大学(Moscow State University)的Graphics and Media Lab制作的一款视频主观评价 ...

  6. 视频客观质量评价工具:MSU Video Quality Measurement Tool

    MSU Video Quality Measurement Tool(msu vqmt)是莫斯科国立大学(Moscow State University)的Graphics and Media Lab ...

  7. 全参考视频质量评价方法(PSNR,SSIM)以及相关数据库

    最常用的全参考视频质量评价方法有以下2种: PSNR(峰值信噪比):用得最多,但是其值不能很好地反映人眼主观感受.一般取值范围:20-40.值越大,视频质量越好. SSIM(结构相似性):计算稍复杂, ...

  8. 全参考客观视频质量评价方法 (MSE, PSNR,SSIM)原理

    全参考客观视频质量评价方法是指把原始参考视频与失真视频在每一个对应帧中的每一个对应像素之问进行比较.准确的讲,这种方法得到的并不是真正的视频质量,而是失真视频相对于原始视频的相似程度或保真程度.最简单 ...

  9. 视频质量评价基础与实践

     点击上方"LiveVideoStack"关注我们 ▲扫描图中二维码或点击阅读原文▲ 了解音视频技术大会更多信息 编者按:视频质量评价作为近些年学6领域比较热门的基础研究,已经逐渐 ...

最新文章

  1. 怎么快速插入 100 条数据,用时最短
  2. BZOJ2741 【FOTILE模拟赛】L
  3. 两台电脑通过usb共享网络_避开网络限制,通过蓝牙共享网络连接
  4. 谷歌联合创始人:AI发展速度让我吃惊,但未来难料
  5. eclipse配置jdk问题
  6. 在python中用import或者from_[转]python基础之---import与from...import....
  7. 通过 GitHub Actions 自动创建 Github Release
  8. Spring Data JPA 写SQL语句也可以如此简单
  9. openstack用户列表_什么是OpenStack超级用户?
  10. Open3d之KDTree
  11. android 万能播放器
  12. java电商网站源码_java 的电商系统的完整源码+文档
  13. c语言国二题库选择填空题,国二c语言笔试题库(含答案),选择填空.doc
  14. 爬虫-抖音无水印视频下载
  15. matlab圆孔孔壁应力集中,matlab 有限元分析平面问题的小孔应力集中问题的程序 - 下载 - 搜珍网...
  16. 【ArcGIS】Packaging succeeded,but publishing failed ERROR001487
  17. STC12C5A60S2 下载失败问题
  18. GIF动态图制作工具(免费),附教程
  19. 品牌在B站做投放,如何选择优质带货UP主?
  20. 给邮箱和手机号码打码

热门文章

  1. Microsoft Azure -- 初步了解 (三)
  2. UVA160 Factors and Factorials【筛选法】
  3. CCF201409-4 最优配餐(100分)
  4. 【换句话说】【等价描述】—— 定义及概念的不同描述
  5. matlab figure 调整大小、字体、线宽
  6. 0.618 与 1.414
  7. 数据库原理(一)—— 关系代数(二)
  8. excel字符串和单元格拼接_Excel单元格内计算式及字符串拼接实现
  9. python3.6.5安装步骤-Centos7 安装Python3.6.5
  10. python自学网-python自学网