Description Usage Arguments Details Value Author(s) Examples
Read an *.xfm file, returning the contents in a data.frame.
1 | rmincUtil.readLinearXfmFile(xfmFilename)
|
xfmFilename |
A string specifying the fully-qualified path to the XFM file of interest. |
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.
A data.frame containing the XFM file details.
Jim Nikelski nikelski@bic.mni.mcgill.ca
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.