Learn R Programming

fslr (version 2.25.3)

invert_xfm: Convert a Transformation

Description

Convert a Transformation

Usage

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 )

Value

A filename of the output matrix file

Arguments

inmat

input matrix transformation

omat

output matrix transformation

verbose

print diagnostic messages

inmat2

second matrix filename to be concatenated or fixscaleskew to first

Examples

Run this code
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)

}

Run the code above in your browser using DataLab