資源簡介
簡單好用的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方程
評論
共有 條評論