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

조회 수: 4 (최근 30일)
Faizullah khan
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.

채택된 답변

Murugan C
Murugan C 2019년 5월 31일
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
Faizullah khan
Faizullah khan 2019년 6월 2일
Plz Explain that for weighted median filter 1 will be ok or 255?. Image is lena.tif.
Thanks & Regards
Murugan C
Murugan C 2019년 6월 3일
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)));

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by