lme_savemgh: Write FreeSurfer image (mgh) files

View source: R/lme_savemgh.R

lme_savemghR Documentation

Write FreeSurfer image (mgh) files

Description

Write FreeSurfer image (mgh) files

Usage

lme_savemgh(vol, fname)

Arguments

vol

List with fields "ndim1", "ndim2", "ndim3", "nframes", which need to contain image dimensions, and "x", which contains the image data.

fname

Filename

Examples

## Not run: vol <- NULL
## Not run: vol$ndim1 <- 256
## Not run: vol$ndim1 <- 256
## Not run: vol$ndim1 <- 160
## Not run: vol$ndim1 <- 1
## Not run: vol$x <- array(1, dim=c(256, 256, 160, 1))
## Not run: lme_savemgh(vol, FILENAME)

Deep-MI/fslmer documentation built on Jan. 24, 2025, 11:24 p.m.