Given an orthogonal permutation matrix \(T\), an array of dimensions and a one-dimensional representation of data. It will return a transformed array with the transformed dimensions.
performPermutation(T, real.dimensions, data, verbose = FALSE)
is an orthogonal matrix.
is a one-dimensional array, representing the length of dimensions in data.
is a one-dimensional representation of the data to be transformed.
is a logical variable (default = FALSE
) that allows
text-based feedback during execution of the function.
Andrew Thornton zeripath@users.sourceforge.net
This function is mainly used by the reorient
function
to transform nifti data into neuroradiological convention.
reorient
,inverseReorient