MATLAB Answers

how to get SNR for 2 images

53 views (last 30 days)
Rawan hamdi
Rawan hamdi on 11 Apr 2013
hi,
i have 2 images and i would like to get SNR between these 2 images. i have an original clean image which is X0, i added some noise to it and the noisy image is Xn

Answers (1)

Kye Taylor
Kye Taylor on 11 Apr 2013
Edited: Kye Taylor on 11 Apr 2013
You'll get different answers, depending on who you're talking to.
I would suggest using
snr = 20*log(norm(X0,'fro')/norm(X0-Xn,'fro'))
  3 Comments
Rawan hamdi
Rawan hamdi on 11 Apr 2013
i'm sorry im new to matlab but how can i define this function?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!