public static float PSNR(ColorFloatImage image1, ColorFloatImage image2) { float max = 255; return(20 * (float)Math.Log10(max / Math.Sqrt(MSE(image1, image2)))); }