Learn R Programming

freesurferformats (version 1.1.0)

lta.volume.info.lines: Write the volume info section of an LTA file.

Description

The volume info section records the geometry of one of the two volumes an LTA file relates: its dimensions, voxel sizes and the direction vectors and center that describe its RAS space. The geometry is written from a volume descriptor, and the direction vectors are the columns of its voxel-to-RAS matrix while the center is the RAS coordinate of voxel index dim/2, which is what FreeSurfer records there.

Usage

lta.volume.info.lines(descriptor, section_name)

Value

character vector, the lines of the section.

Arguments

descriptor

NULL or a volume descriptor, see volume.descriptor.

section_name

character string, either 'src' or 'dst'.