91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-14
  • 語言: Matlab
  • 標簽:

資源簡介

matlab開發-calcpsnr。一個簡單的函數來查找兩個圖像之間的psnr!

資源截圖

代碼片段和文件信息

%?This?function?PSNR?=?calcpsnr(fF)?will?compute?the?PSNR?of?two?given?
%?images.?The?function?accepts?as?inputs?the?2?images?where?the?first?
%?image?is?the?source?image?f(xy)?containing?N?by?M?pixels?and?the?second?
%?is?the?reconstructed?image?F(xy).?[note?f?and?F?must?be?between?0?and?255]
%?The?function?also?calculates?the?Error?image?by?taking?the?difference
%?between?the?reconstructed?and?original?pixels.
%?The?typical?construction?of?the?error?image?multiples?the?difference?by?a
%?constant?to?increase?the?visible?difference?and?translates?the?entire
%?image?to?a?gray?level.
%?Formulas?for?these?computations?have?been?gotten?from
%?http://bmrc.berkeley.edu/courseware/cs294/fall97/assignment/psnr.html?on
%?July?26th?2007.?The?code?was?put?together?by?me?Toritseju?Okpotse?same
%?day.
%The?code?has?been?modified?on?11-11-2008?by?me?Gholamreza?Anbarjafari
%(Shahab).



function?calcpsnr(fF)
??
???[N?M]?=?size(F);
??
???MSE?=?sqrt((sum(sum((double(f)-double(F)).^2)))/(N*M));
???PSNR?=?20*log10(255/MSE);
???sprintf(‘The?PSNR?of?given?image?is:?%5.2fdB.‘PSNR)
???
???

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1117??2009-05-20?06:12??calcpsnr.m
?????文件????????1318??2014-02-12?12:40??license.txt

評論

共有 條評論