Description Usage Arguments Value Examples
Convert a Transformation
1 2 3 4 5 6 7 8 9 10  | invert_xfm(inmat, omat = tempfile(fileext = ".mat"), verbose = TRUE)
concat_xfm(inmat, inmat2, omat = tempfile(fileext = ".mat"), verbose = TRUE)
fixscaleskew_xfm(
  inmat,
  inmat2,
  omat = tempfile(fileext = ".mat"),
  verbose = TRUE
)
 | 
inmat | 
 input matrix transformation  | 
omat | 
 output matrix transformation  | 
verbose | 
 print diagnostic messages  | 
inmat2 | 
 second matrix filename to be concatenated or fixscaleskew to first  | 
A filename of the output matrix file
1 2 3 4 5 6 7 8 9 10 11  | if (have_fsl()) {
img = mni_fname()
mat = fslreorient2std_mat(img)
inverted = invert_xfm(mat)
readLines(inverted)
catted = concat_xfm(mat, mat)
readLines(catted)
fixed = fixscaleskew_xfm(mat, mat)
readLines(fixed)
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.