finding mse and hence quantifying the quality of an image

i want a matlab code for finding mean square error and hence quantifying the quality of an image in digital image processing

Respuestas (1)

Wayne King
Wayne King el 11 de Oct. de 2013
Editada: Wayne King el 11 de Oct. de 2013
The Wavelet Toolbox has a function for this measerr(), but it's easy enough to do. Suppose that X is your image and Xapp is the approximation
X = randn(256,256);
Xapp = randn(256,256);
errim = (X-Xapp).^2;
mse = sum(errim(:))/numel(X);

Etiquetas

Preguntada:

el 11 de Oct. de 2013

Editada:

el 11 de Oct. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by