PSNR bsed comparisson of images

조회 수: 1 (최근 30일)
Mangesh
Mangesh 2015년 2월 4일
댓글: Mangesh 2015년 2월 5일
Sir, I have 4 images A,B,C,D and I have to compare image A using psnr, with respect to A,B,C and D. please suggest the code

답변 (1개)

Image Analyst
Image Analyst 2015년 2월 4일
There is a function psnr() in the Image Processing Toolbox. If you don't have that, you can do it manually yourself. See my attached program.
  댓글 수: 3
Image Analyst
Image Analyst 2015년 2월 4일
Why would there be an if/else block??? What would you be testing/checking/comparing in the if statement? Anyway I'm sure (or at least I'd like to think) that you know how to use an if/else statement
if someExpression
% Do something such as call psnr
elseif someOtherExpression
% Do something else
else
% When all else fails, do this
end
Mangesh
Mangesh 2015년 2월 5일
Sir I have four images with same color but different contrast,with respective psnr values. Now I have to compare A with rest of the three that in how much percent it matches with rest of three.......please help

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by