Calculates the variance of an image

var(x, ...)

# S3 method for default
var(x, ...)

# S3 method for antsImage
var(x, ...)

Arguments

x

an object for which we want to compute the variance

Any additional arguments to be passed to var.

Examples

img <- antsImageRead( getANTsRData( "r16" ) ) var(img)
#> [1] 7194.085