Build an affine matrix up from its constituent transformations
This function does the opposite to decomposeAffine
, building
up an affine matrix from its components. It can be useful for testing, or
for rescaling images.
buildAffine(translation = c(0, 0, 0), scales = c(1, 1, 1), skews = c(0, 0, 0), angles = c(0, 0, 0), source = NULL, target = NULL, anchor = c("none", "origin", "centre", "center"))
translation |
Translations along each axis, in |
scales |
Scale factors along each axis. |
skews |
Skews in the XY, XZ and YZ planes. |
angles |
Roll, pitch and yaw rotation angles, in radians. If
|
source |
The source image for the transformation (required). |
target |
The target image for the transformation. If |
anchor |
The fixed point for the transformation. Setting this parameter
to a value other than |
A 4x4 affine matrix representing the composite transformation. Note that NiftyReg affines logically transform backwards, from target to source space, so the matrix may be the inverse of what is expected.
Jon Clayden <code@clayden.org>
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.