Testing PSNR for Mat