How to calculate MSE (Mean Squared Error)?

What is the instruction to calculate mean squared error of two images?

1 Comment

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

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

Asked:

on 20 Jan 2017

Edited:

on 22 Jan 2017

Community Treasure Hunt

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

Start Hunting!