Convert a Transformation
input matrix transformation
output matrix transformation
print diagnostic messages
second matrix filename to be concatenated or fixscaleskew to first
A filename of the output matrix file
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)
}
#> fslreorient2std "/usr/local/fsl/data/standard/MNI152_T1_1mm.nii.gz" > /var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file8575282f9865.mat ;
#> convert_xfm -omat /var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file85754cbe237f.mat -inverse "/private/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T/RtmpKzob0N/file8575282f9865.mat" ;
#> convert_xfm -omat /var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file8575570c8e35.mat -concat /var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file8575282f9865.mat "/private/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T/RtmpKzob0N/file8575282f9865.mat" ;
#> convert_xfm -omat /var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file8575794c6638.mat -fixscaleskew /var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file8575282f9865.mat "/private/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T/RtmpKzob0N/file8575282f9865.mat" ;
#> [1] "1 0 0 0 " "0 1 0 0 " "0 0 1 0 " "0 0 0 1 "