reorient_volume {threeBrain}R Documentation

Function to reshape data to 'RAS' order

Description

Function to reshape data to 'RAS' order

Usage

reorient_volume(volume, Torig)

Arguments

volume

3-mode tensor (voxels), usually from 'mgz', 'nii', or 'BRIK' files

Torig

a 4x4 transform matrix mapping volume ('CRS') to 'RAS'

Value

Reshaped tensor with dimensions corresponding to 'R', 'A', and 'S'


[Package threeBrain version 1.2.0 Index]