I have two images: lena (the original) and image_new (the reconstructed image). I would like to calculate the MSE. My code below is not working – any idea why? Matlab keeps saying there are not enough input arguments.
function MSE= MSE(lena, image_new);[M, N] = size(lena);error = lena - (image_new);MSE = sum(sum(error .* error)) / (M * N);disp(MSE);end
Best Answer