mghheader.is.ras.valid: Check whether header contains valid ras information

View source: R/mghheader.R

mghheader.is.ras.validR Documentation

Check whether header contains valid ras information

Description

Check whether header contains valid ras information

Usage

mghheader.is.ras.valid(header)

Arguments

header

mgh header or fs.volume instance with header

Value

logical, whether header contains valid ras information (according to the ras_good_flag).

See Also

Other header coordinate space: mghheader.ras2vox(), mghheader.ras2vox.tkreg(), mghheader.scanner2tkreg(), mghheader.tkreg2scanner(), mghheader.vox2ras(), mghheader.vox2ras.tkreg(), read.fs.transform(), read.fs.transform.dat(), read.fs.transform.lta(), read.fs.transform.xfm(), sm0to1(), sm1to0()

Examples

brain_image <- system.file("extdata", "brain.mgz",
  package = "freesurferformats",
  mustWork = TRUE
)
vdh <- read.fs.mgh(brain_image, with_header = TRUE)
mghheader.is.ras.valid(vdh$header)


freesurferformats documentation built on Sept. 8, 2026, 5:08 p.m.