MATLAB Answers

0

PNSR formula psnr=20.0* (log10(255/sqrt(mse)));

Faizullah khan さんによって質問されました 2019 年 5 月 30 日
最新アクティビティ Murugan C
さんによって コメントされました 2019 年 6 月 3 日
Can we type the formula like this: psnr=20.0* (log10(1/sqrt(mse)));
I mean can we write 1 intstead of 255.
Plz explain.

  0 件のコメント

サインイン to comment.

タグ

1 件の回答

Murugan C
Answer by Murugan C on 31 May 2019
 Accepted Answer

Hi Faizullah
We can use 1 instead of 255, if your input image is logical (max pixel range is 1 ) or your image is uint8 then you should use maximum of image pixel range is 255.

  3 件のコメント

Thank you Sir my input image is Lena.tif and I want to calculate psnr by using weighted median filter.When I am using 255 in psnr formula it give me very high value.But when I use 1 in psnr formula it give me normal value. So I think 1 will be OK.Comment plz..
Plz Explain that for weighted median filter 1 will be ok or 255?. Image is lena.tif.
Thanks & Regards
Hi,
PSNR shoud be more than 100. Please find max value from your output image and use it as below
psnr= 10.0* (log10((max(max(output_img))/sqrt(mse)));

サインイン to comment.



Translated by