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,想下载个代码,希望可以通过
图像质量是用于自动图像质量评估(IQA)的开源软件库。 依存关系 Python 3.8 (开发中)Docker 安装 该软件包是公共的,并托管在PyPi存储库中。 要将其安装在您的机器中 pip install image-quality 例子 安装image-...
目 录 第一章 引言 1 ...为了满足用户在各种应用中对图像质量的要求,也便于开发者们维持、控制和强化图像质量,图像质量评价(Image Quality Assessment,IQA)是一种对图像所受到的质量退化进行辨识和量化的
目前人为扭曲的图像质量评价(IQA)数据库规模较小,内容有限。较大的 IQA 数据库内容多样化,有利于 IQA 深度学习的发展。我们创建了两个数据集,康斯坦茨人为扭曲图像质量数据库(kADID-10k)和康斯坦茨人为扭曲图像...
IQA是一个计算图像/视频质量的基于C语言的库。 里面包含了源代码。
资源包含文件:全部源码及...训练时发现在低质量图像时网络性能很差,对图像的质量label进行非线性拉伸到 0-10, 详细介绍参考:https://biyezuopin.blog.csdn.net/article/details/124121211?spm=1001.2014.3001.5502
该研究通过互动的定性研究方法讨论了增强现实学习者的内在思想。 参加者是大学的大三和大四,他们在增强现实设计中设置了特殊主题。 研究发现:1)增强现实学习者提出的学习思维概念与主要推动者项目和主要成果的...
图像质量评价
客观图像质量评价(IQA)的目的是设计与主观评价算法尽可能一致的数学模型来度量图像的质量. 针对结构 相似度(SSIM)和其他一些算法的局限性, 考虑到梯度可以反映图像的边缘纹理等结构信息, 提出一种快速的全参考 型 ...
无参考图像质量评价,深度学习,生成对抗网络,adversarial net (RAN), a GAN-based model for no-reference image quality assessment (NR-IQA).
(即,如果我们认为被测图像/视频的质量很好,则该算法必须为该图像/视频生成更高的分数。) (定义并不精确!更多信息可以在这里找到: //ocampor.medium.com/advanced-methods-for-iqa-37581ec3c31f ;-) ) 有...
图像质量评估(IQA)模型的感知优化 该存储库使用PyTorch重新实现了现有的IQA模型,包括 , , , , , , , , , 。 注意:复制的结果可能与原始的matlab版本略有不同。 安装: pip install IQA_pytorch ...
图像质量评价 报告 (法语版) IQA 总结了6个无参考图评价算法 如果不懂法语可以联系我
图像质量评估IQA1
图像质量评价越来越成为发展的热点,其中无参考的质量评价更得到了广泛的青睐图像是人类感知和机器模式识别的重要信息源,其质量对所获取信息的充分性和准确性起着决定性的作用,然而在图像的采集、压缩﹑处理﹑传输及...
ODU和ODA IQA-method一个关于IQA方法的实验,参考论文Blind Image Quality Assessment forSuper Resolution via Optimal Feature Selection
用于评价图像的各种指标比如PNSR SSEQ 等等
IQA文件:图像质量评估