Obtain or replace the “xform” transforms for an image
These functions convert the “qform” or “sform” information in a NIfTI header to or from a corresponding affine matrix. These two “xform” mechanisms are defined by the NIfTI standard, and may both be in use in a particular image header.
1 2 3 4 5
An image, in any acceptable form (see
A single logical value. If
A new 4x4 qform or sform matrix. If the matrix has a
A affine matrix corresponding to the “qform” or “sform”
information in the image header. This is a plain matrix, which does not
"affine" class or
The qform and sform replacement functions are for advanced users only. Modifying the transforms without knowing what you're doing is usually unwise, as you can make the image object inconsistent.
Jon Clayden <firstname.lastname@example.org>
The NIfTI-1 standard (http://nifti.nimh.nih.gov/nifti-1) is the definitive reference on “xform” conventions.
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.