Check whether header contains valid ras information

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

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);
#> [1] TRUE