niftiops: Operations for NIfTI Objects

Description Usage Arguments Author(s) Examples

Description

Overloaded operators for nifti objects

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'nifti,nifti'
Ops(e1, e2)

## S4 method for signature 'nifti,numeric'
Ops(e1, e2)

## S4 method for signature 'numeric,nifti'
Ops(e1, e2)

Arguments

e1

is an object of class nifti.

e2

is an object of class nifti.

Author(s)

John Muschelli muschellij2@gmail.com

Examples

1
2
3
4
5
img01 <- nifti(array(1:64, c(4,4,4,1)), datatype=4)
img02 <- nifti(array(64:1, c(4,4,4,1)), datatype=4)
is.nifti(img01 + img02)
is.nifti(sqrt(2) * img01)
is.nifti(img02 / pi)

neuroconductor/oro.nifti documentation built on May 19, 2021, 5:25 a.m.