MATLAB: Edit-calculating PSNR

psnr

As in my previous post
MSE = mean2((single(image1) – single(image2)).^2);
i get error,matrix dimension must agree,please help

Best Answer

  • MSE is not defined in that situation.
    MSE is only define between a reference image and an altered version of the image of the same size.
    If you were to "decompress" the wavelets back to a full sized image, then it would be meaningful to calculate the MSE between the original image and the one produced by the compression + decompression process.