This function is used to write a 4x4 numeric matrix representing an affine
transformation to a file. A comment is also (optionally) written, which
specifies the matrix as using the NiftyReg convention, for the benefit of
readAffine
.
writeAffine(affine, fileName, comments = TRUE)
A 4x4 affine matrix.
A string giving the file name to write the matrix to.
Logical value: if TRUE
comments are written to the
file in lines beginning with #
.
Jon Clayden <code@clayden.org>
write.table
, readAffine