orientation-methods: Extract NIfTI 3D Image Orientation

Description Usage Arguments Methods Author(s) Examples

Description

Methods that act on the “qform” and “sform” information in the NIfTI header.

Usage

1
2
3
4
5
6
7
8
9
sform(object)

## S4 method for signature 'nifti'
sform(object)

qform(object)

## S4 method for signature 'nifti'
qform(object)

Arguments

object

is an object of class nifti.

Methods

object = "nifti"

Extract or replace NIfTI description.

Author(s)

Brandon Whitcher bwhitcher@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
url <- "http://nifti.nimh.nih.gov/nifti-1/data/avg152T1_LR_nifti.nii.gz"
urlfile <- file.path(system.file("nifti", package="oro.nifti"),
                     "mniLR.nii.gz")
download.file(url, urlfile, quiet=TRUE)

## End(Not run)
urlfile <- file.path(system.file("nifti", package="oro.nifti"),
                     "mniLR.nii.gz")
mniLR <- readNIfTI(urlfile)
sform(mniLR)

neuroconductor-devel/oro.nifti documentation built on May 6, 2021, 1:49 p.m.