资源简介
均方误差(mean-square error, MSE)是反映估计量与被估计量之间差异程度的一种度量。设t是根据子样确定的总体参数θ的一个估计量,(θ-t)2的数学期望,称为估计量t的均方误差。它等于σ2+b2,其中σ2与b分别是t的方差与偏倚。
psnr是“Peak Signal to Noise Ratio”的缩写,即峰值信噪比,是一种评价图像的客观标准,它具有局限性,一般是用于最大值信号和背景噪音之间的一个工程项目。
代码片段和文件信息
function [quality quality_map] = img_qi(img1 img2 block_size)
%========================================================================
%
%Copyright (c) 2001 The University of Texas at Austin
%All Rights Reserved.
%
%This program is free software; you can redistribute it and/or modify
%it under the terms of the GNU General Public License as published by
%the Free Software Foundation; either version 2 of the License or
%(at your option) any later version.
%
%This program is distributed in the hope that it will be useful
%but WITHOUT ANY WARRANTY; without even the implied warranty of
%MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%GNU General Public License for more details.
%
%The GNU Public License is available in the file LICENSE or you
%can write to the Free Software Foundation Inc. 59 Temple Place -
%Suite 330 Boston MA 02111-1307 USA or you can find it on the
%World Wide Web at http://www.fsf.org.
%
%Author : Zhou Wang
%Version : 1.0
%
%The authors are with the Laboratory for Image and Video Engineering
%(LIVE) Department of Electrical and Computer Engineering The
%University of Texas at Austin Austin TX.
%
%Kindly report any suggestions or corrections to zwang@ece.utexas.edu
%
%Acknowledgement:
%The author would like to thank Mr. Umesh Rajashekar the Matlab master
%in our lab for spending his precious time and giving his kind help
%on writing this program. Without his help this program would not
%achieve its current efficiency.
%
%========================================================================
%
%This is an efficient implementation of the algorithm for calculating
%the universal image quality index proposed by Zhou Wang and Alan C.
%Bovik. Please refer to the paper “A Universal Image Quality Index“
%by Zhou Wang and Alan C. Bovik published in IEEE Signal Processing
%Letters 2001. In order to run this function you must have Matlab‘s
%Image Processing Toobox.
%
%Input : an original image and a test image of the same size
%Output: (1) an overall quality index of the test image with a value
% range of [-1 1].
% (2) a quality map of the test image. The map has a smaller
% size than the input images. The actual size is
% img_size - BLOCK_SIZE + 1.
%
%Usage:
%
%1. Load the original and the test images into two matrices
% (say img1 and img2)
%
%2. Run this function in one of the two ways:
%
% % Choice 1 (suggested):
% [qi qi_map] = img_qi(img1 img2);
%
% % Choice 2:
% [qi qi_map] = img_qi(img1 img2 BLOCK_SIZE);
%
% The default BLOCK_SIZE is 8 (Choice 1). Otherwise you can specify
% it by yourself (Choice 2).
%
%3. See the results:
%
% qi %Gives the over quality index.
% imshow((qi_map+1)/2) %Shows the quality map as an image.
%
%========================================================================
if (nargin == 1 | nargin > 3)
qua
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1438444 2013-10-09 15:29 02_3_FR_MSE_PSNR\A Universal Image Quality Index.pdf
文件 4184 2013-10-10 17:41 02_3_FR_MSE_PSNR\img_qi.m
文件 506 2013-10-09 15:55 02_3_FR_MSE_PSNR\psnr_mse.m
文件 3801 2013-10-10 17:46 02_3_FR_MSE_PSNR\PSNR_MSE_demo.m
文件 194 2013-10-11 12:36 02_3_FR_MSE_PSNR\readme.txt
文件 4419 2013-10-10 17:18 02_3_FR_MSE_PSNR\UniIQA_demo.asv
文件 3911 2013-10-10 17:45 02_3_FR_MSE_PSNR\UniIQA_demo.m
文件 20878 2013-10-15 10:43 02_3_FR_MSE_PSNR\总结.docx
目录 0 2017-12-11 10:41 02_3_FR_MSE_PSNR
----------- --------- ---------- ----- ----
1476337 9
- 上一篇:大华视频控件
- 下一篇:vm虚拟机批量克隆及管理工具
评论
共有 条评论