Methods that act on the “qform” and “sform” information in the NIfTI header.
sform(object)
# S4 method for nifti
sform(object)
qform(object)
# S4 method for nifti
qform(object)
object | is an object of class |
---|
Extract or replace NIfTI description.
Brandon Whitcher bwhitcher@gmail.com
if (FALSE) {
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)
}
urlfile <- file.path(system.file("nifti", package="oro.nifti"),
"mniLR.nii.gz")
mniLR <- readNIfTI(urlfile)
sform(mniLR)
#> [,1] [,2] [,3] [,4]
#> [1,] -2 0 0 90
#> [2,] 0 2 0 -126
#> [3,] 0 0 2 -72