Learn R Programming

ANTsR (version 1.0)

mean,antsImage-method: arith.antsImage

Description

Atomic arithmetic operators for antsImages

Usage

# S4 method for antsImage
mean(x, mask = logical())

# S3 method for antsImage +(x, y)

# S3 method for antsImage -(x, y)

# S3 method for antsImage /(x, y)

# S3 method for antsImage *(x, y)

# S3 method for antsImage ^(x, y)

# S3 method for antsImage %%(x, y)

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

# S3 method for antsImage exp(x)

Arguments

x

antsImage

mask

antsImage logical mask (optional)

y

antsImage or numeric

...

Additional arguments passed to underlying R operator

Examples

Run this code
# NOT RUN {
r16 <- antsImageRead(getANTsRData('r16'), 2)
r64 <- antsImageRead(getANTsRData('r64'), 2)
r16 + r64
r16 + 5
r16 / 10
log(r16, base=10)
# }

Run the code above in your browser using DataLab