资源简介
用于对比两幅图像的相似度,验证图像的去噪效果!
代码片段和文件信息
function [mssim ssim_map] = ssim(img1 img2 K window L)
%========================================================================
%SSIM Index Version 1.0
%Copyright(c) 2003 Zhou Wang
%All Rights Reserved.
%
%The author is with Howard Hughes Medical Institute and Laboratory
%for Computational Vision at Center for Neural Science and Courant
%Institute of Mathematical Sciences New York University.
%
%----------------------------------------------------------------------
%Permission to use copy or modify this software and its documentation
%for educational and research purposes only and without fee is hereby
%granted provided that this copyright notice and the original authors‘
%names ap pearon all copies and supporting documentation. This program
%shall not be used rewritten or adapted as the basis of a commercial
%software or hardware product without first obtaining permission of the
%authors. The authors make no representations about the suitability of
%this software for any purpose. It is provided “as is“ without express
%or implied warranty.
%----------------------------------------------------------------------
%
%This is an implementation of the algorithm for calculating the
%Structural SIMilarity (SSIM) index between two images. Please refer
%to the following paper:
%
%Z. Wang A. C. Bovik H. R. Sheikh and E. P. Simoncelli “Image
%quality assessment: From error visibility to structural similarity“
%IEEE Transactios on Image Processing vol. 13 no. 4 pp.600-612
%Apr. 2004.
%
%Kindly report any suggestions or corrections to zhouwang@ieee.org
%
%----------------------------------------------------------------------
%
%Input : (1) img1: the first image being compared
% (2) img2: the second image being compared
% (3) K: constants in the SSIM index formula (see the above
% reference). defualt value: K = [0.01 0.03]
% (4) window: local window for statistics (see the above
% reference). default widnow is Gaussian given by
% window = fspecial(‘gaussian‘ 11 1.5);
% (5) L: dynamic range of the images. default: L = 255
%
%Output: (1) mssim: the mean SSIM index value between 2 images.
% If one of the images being compared is regarded as
% perfect quality then mssim can be considered as the
% quality measure of the other image.
% If img1 = img2 then mssim = 1.
% (2) ssim_map: the SSIM index map of the test image. The map
% has a smaller size than the input images. The actual size:
% size(img1) - size(window) + 1.
%
%Default Usage:
% Given 2 test images img1 and img2 whose dynamic range is 0-255
%
% [mssim ssim_map] = ssim_index(img1 img2);
%
%Advanced Usage:
% User defined parameters. For example
%
% K = [0.05 0.05];
% window = ones(8);
% L = 100;
% [mssim ssim_map] = ssim_index(img1 img2 K window L);
%
%See the res
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 315 2011-12-02 18:58 SSIMdemo.m
文件 6647 2011-12-02 16:55 ssim.m
----------- --------- ---------- ----- ----
6962 2
相关资源
- 微电网虚拟同步发电寄控制模型
- flocking concrol.zip
- 蚁狮算法寻优
- 二次曲面拟合实现高程模型建立
- 角点检测Corners代码
- 基于梯度法的模型参考自适应程序
- 基于李雅普诺夫模型参考自适应程序
- D2D-HS算法
- GPS信号捕获仿真
- 产生正态白噪声序列(1) 打印出前
- 李纯明 博士水平集图像分割代码
- 脑电数据批量绘图算法v3.0.zip
- 拟牛顿法程序
- 数据拟合方法实现飞行物体运动轨迹
- 如何使用FULLBNT工具箱(中文)
- 快速理解DFT
- 单目标优化含约束
- 原子分解算法Atomizer
- 室内定位RSS位置指纹法-KNN代码与数据
- 利用联合对角化技术进行信号盲分离
- 直流无刷电机双闭环控制系统仿真模
- 郑州大学随机信号处理大作业 附程序
- 气候分析中检验突变程序(滑动t检验
- 双馈风电机组DFIG的详细仿真模型
- 基于LIBSVM的图像分类
- 转子动力学求解转子系统前三个临界
- 图片颜色互相转换:RGB HSV CIE Lab CIE
- 卡尔曼滤波动态跟踪.rar
-
em
bedded Coder Support Package for Texas In - 直流微电网模型含蓄电池控制.zip
评论
共有 条评论