rmincUtil.readLinearXfmFile: Read a Linear XFM File

Description Usage Arguments Details Value Author(s) Examples

View source: R/rmincUtil.R

Description

Read an *.xfm file, returning the contents in a data.frame.

Usage

1

Arguments

xfmFilename

A string specifying the fully-qualified path to the XFM file of interest.

Details

This function decodes the xfm file by making an external call to the “xfm2param” program within the conglomerate package. As such, conglomerate needs to be installed and available on the user's PATH for this function to work.

Value

A data.frame containing the XFM file details.

Author(s)

Jim Nikelski nikelski@bic.mni.mcgill.ca

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
library(rmincIO)

# set Civet root path and scan-identifier
scanID <- "0548-F-NC"
baseDir <- "~/tmp/ADNI/civet/pipeOut"

# read in the linear xfm file from Civet
xfmname <- civet.getFilenameLinearTransform(scanID, baseDir)
xfm.df <- rmincUtil.readLinearXfmFile(xfmname)

# extract the x-scaling factor
xScale <- xfm.df["scale", "x"]

# create a global scaling factor
globalRescale <- prod(xfm.df["scale",])


## End(Not run)

jnikelski/rmincIO documentation built on May 19, 2019, 2:58 p.m.