oro.nifti (version 0.11.0)

orientation-methods: Extract NIfTI 3D Image Orientation

Description

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

Usage

sform(object)

# S4 method for nifti sform(object)

qform(object)

# S4 method for nifti qform(object)

Arguments

object

is an object of class nifti.

Methods

object = "nifti"

Extract or replace NIfTI description.

Examples

Run this code
# NOT RUN {
# }
# 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)
# }
# NOT RUN {
urlfile <- file.path(system.file("nifti", package="oro.nifti"),
                     "mniLR.nii.gz")
mniLR <- readNIfTI(urlfile)
sform(mniLR)
# }

Run the code above in your browser using DataCamp Workspace