Learn R Programming

freesurferformats (version 0.1.18)

get.slice.orientation: Compute MGH orientation string and direction

Description

Compute MGH orientation string and direction

Usage

get.slice.orientation(Mdc)

Value

named list with entries: `orientation_string`: character string of length 3, one uppercase letter per axis. `direction_name`: slice direction, character string, one of 'sagittal', 'coronal', 'axial' or 'unknown'.

Arguments

Mdc

numeric 3x3 matrix, typically from the header$internal$Mdc field as returned by read.fs.mgh.