Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

writeAffine

Write an affine matrix to a file


Description

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.

Usage

writeAffine(affine, fileName, comments = TRUE)

Arguments

affine

A 4x4 affine matrix.

fileName

A string giving the file name to write the matrix to.

comments

Logical value: if TRUE comments are written to the file in lines beginning with #.

Author(s)

Jon Clayden <code@clayden.org>

See Also


RNiftyReg

Image Registration Using the 'NiftyReg' Library

v2.7.0
GPL-2
Authors
Jon Clayden [cre, aut] (<https://orcid.org/0000-0002-6608-0619>), Marc Modat [aut], Benoit Presles [aut], Thanasis Anthopoulos [aut], Pankaj Daga [aut]
Initial release
2020-09-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.