Learn R Programming

ANTsR (version 0.3.3)

mean,antsImage-method: arith.antsImage

Description

Atomic arithmetic operators for antsImages

Usage

"mean"(x, mask = logical())
"sum"(x, mask = logical())
"+"(x, y)
"-"(x, y)
"/"(x, y)
"*"(x, y)
"^"(x, y)
"%%"(x, y)
"log"(x, ...)
"exp"(x)
"abs"(x)

Arguments

x
antsImage
mask
antsImage logical mask (optional)
y
antsImage or numeric
...
Additional arguments passed to underlying R operator

Examples

Run this code
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