reorient_volume: Function to reshape data to 'RAS' order

View source: R/utils_orient.R

reorient_volumeR 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'


threeBrain documentation built on July 9, 2023, 6:32 p.m.