How to calculate MSE (Mean Squared Error)?

1 view (last 30 days)
hudof najeeb
hudof najeeb on 20 Jan 2017
Edited: hudof najeeb on 22 Jan 2017
What is the instruction to calculate mean squared error of two images?
  1 Comment
hudof najeeb
hudof najeeb on 21 Jan 2017
Edited: Walter Roberson on 21 Jan 2017
when I am writing
disp(['MSE ' measerr(CoverImg,stegImg)])
the result is 3. it is error because it must be btw 0 and 1. how to solve it?

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 20 Jan 2017
Edited: Walter Roberson on 20 Jan 2017
  2 Comments
Walter Roberson
Walter Roberson on 21 Jan 2017
measerr can return mean squared error, but it does so as the second output.
[~, MSE] = measerr(CoverImg,stegImg);
fprintf('MSE: %.5g\n', MSE)
hudof najeeb
hudof najeeb on 22 Jan 2017
Edited: hudof najeeb on 22 Jan 2017
Thank you Sir...This is exactly what I wanted

Sign in to comment.

Categories

Find more on Encryption / Cryptography in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!