资源简介
简单好用的matlab实现批量计算彩色RGB图像的PSNR和SSIM,设置了3种转换方法,(1)matlab自带转换YUV格式,(2)自己编写YUV转换公式(3)matlab自带转换灰度格式
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% FUNCTION: metrix_mse
%%%
%%% INPUTS: reference_image - original image data
%%%
%%% query_image - modified image data to be compared with
%%% original image
%%%
%%% OUTPUTS: metrix_value - MSE value
%%%
%%% CHANGES: NONE
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Author: Matthew Gaubatz
%%% Version: 1.0
%%% Date: 01/05/2007
%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Copyright (c) 2007 Visual Communications Lab Cornell University
%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Permission to use copy modify distribute and sell this software
%%% and its documentation for any purpose is hereby granted without fee
%%% provided that the above copyright notice appear in all copies and
%%% that both that copyright notice and this permission notice appear
%%% in supporting documentation. VCL makes no representations about
%%% the suitability of this software for any purpose.
%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% DISCLAIMER:
%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% The code provided hereunder is provided as is without warranty
%%% of any kind either express or implied including but not limited
%%% to the implied warranties of merchantability and fitness for a
%%% particular purpose. The author(s) shall in no event be liable for
%%% any damages whatsoever including direct indirect incidental
%%% consequential loss of business profits or special damages.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [metrix_value] = metrix_mse(reference_imagequery_image)
metrix_value = mean( (reference_image(:) - query_image(:)).^2 );
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2138 2015-11-20 20:51 官方PSNR和SSIM\metrix_mse.m
文件 3941 2015-12-01 13:19 官方PSNR和SSIM\metrix_psnr.m
文件 2138 2008-04-15 01:52 官方PSNR和SSIM\metrix_ssim.m
文件 1491 2015-12-01 13:21 官方PSNR和SSIM\psnr_ssim.m
文件 7424 2015-12-01 13:21 官方PSNR和SSIM\ssim_index.m
文件 0 2015-12-01 11:00 官方PSNR和SSIM\小海修改地方:添加了不同的图像转换方法.txt
目录 0 2015-12-01 13:27 官方PSNR和SSIM
----------- --------- ---------- ----- ----
17132 7
- 上一篇:图像的区域生长分割matlab程序
- 下一篇:possion方程
评论
共有 条评论