Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

threeBrain (version 1.0.1)

reorient_volume: Function to reshape data to `RAS` order

Description

Function to reshape data to `RAS` order

Usage

reorient_volume(volume, Torig)

Value

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

Arguments

volume,

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

Torig

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