How to calculate PSNR gain?

조회 수: 2 (최근 30일)
tina jain
tina jain 2015년 11월 29일
댓글: Walter Roberson 2015년 11월 30일
I want to calculate averge percentage gain for the PSNR values given in the table
*s.no PSNR at column 1 PSNR a column 2*
1 18.61 21.88
2 18.61 22.68
3 18.61 23.72
please help

답변 (2개)

Walter Roberson
Walter Roberson 2015년 11월 29일
mean(column2 - column1)
?
  댓글 수: 2
tina jain
tina jain 2015년 11월 30일
It should be mean (column 2- column 1)/mean(column 1)??
Walter Roberson
Walter Roberson 2015년 11월 30일
PSNR is usually stated in dB, and gain is usually stated in dB, so I would expect you to just be using a subtraction like I show. If you use the ratio like you show then the units would be lost. Also since PSNR is based upon log10 you would need to ask whether you should really be dividing the log values as that would correspond mathematically to taking an n-th root of the original values.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2015년 11월 30일
meanPsnrCol1 = mean(t{:,2});
meanPsnrCol2 = mean(t{:,3});
where t is your table. Not sure how you're defining gain after that. Maybe
psnrGain = meanPsnrCol2 / meanPsnrCol1;
???
  댓글 수: 1
Image Analyst
Image Analyst 2015년 11월 30일
Or
psnrGain = (meanPsnrCol2 - meanPsnrCol1) / meanPsnrCol1;
Did my code give you the mean of your table columns?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by