This function calculates error between two images

MSE(x, y = NULL)

MAE(x, y = NULL)

PSNR(x, y)

Arguments

x, y

antsImage objects

Functions

  • MSE: Mean Squared Error

  • MAE: Mean Absolute Error

  • PSNR: Peak Signal-to-Noise Ratio

Examples

library( ANTsRCore )
#> #> Attaching package: ‘ANTsRCore’
#> The following object is masked from ‘package:stats’: #> #> var
#> The following objects are masked from ‘package:base’: #> #> all, any, apply, max, min, prod, range, sum
MSE( ri(1), ri(2) )
#> [1] 1219.729
#alternatively it can be done like: MSE( ri(1) - ri(2) )
#> [1] 1219.729