How can I calculate the MSE between 2 images?
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ref=imread("birdmiddle.png");
A=imread("birdmiddle2.png");
err = immse(A, ref);
fprintf('\n The mean-squared error is %0.4f\n', err);
** I am trying to find the MSE but the following error shows. Image 'A' is the original image 'ref' compressed using lossy jpeg compression, and then the compressed jpeg is converted back into a png. Why is there an error?**
Error using immse (line 34)
A and B must have the same class.
0 comentarios
Respuestas (1)
KALYAN ACHARJYA
el 31 de Oct. de 2019
Editada: KALYAN ACHARJYA
el 31 de Oct. de 2019
ref=imread('birdmiddle.png');
A=imread('birdmiddle2.png');
err = immse(A, ref);
fprintf('\n The mean-squared error is %0.4f\n', err);
Still problem is not solved, please attached two images
2 comentarios
KALYAN ACHARJYA
el 5 de Nov. de 2019
Editada: KALYAN ACHARJYA
el 5 de Nov. de 2019
Can you attach the two original images? One suggestion, convert the both to uint8 and find the same, do share the result value (MSE)?

Tanish do calculate (samples) on notebook, you get the idea.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!