필터 지우기
필터 지우기

How can I calculate the PSNR of two images in matlab? The images are obtained as intermediate results. How can I use these images to calculate the PSNR value

조회 수: 1 (최근 30일)
How can I calculate the PSNR of two images in matlab? The images are obtained as intermediate results. How can I use these images to calculate the PSNR value

채택된 답변

Walter Roberson
Walter Roberson 2015년 8월 18일
Yes, PSNR can be negative. It is 10 * log10() of a ratio, so if the ratio is less than 1 then log10() is negative and so the PSNR would be negative.
  댓글 수: 3
Walter Roberson
Walter Roberson 2015년 8월 18일
nI and I would have to be double() for that to work -- or rather, they could not be uint8() or any other unsigned class.
I = double(YourImage);
for K = 1 : 20
nI = I + randn(size(I)) * 1.2345*K;
ps(K) = 10*log10(255*255/mean2((nI-I).^2));
end
plot(ps);

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by