Learn R Programming

freesurferformats (version 1.1.0)

validate.fs.transform: Check whether an object is a valid fs.transform instance.

Description

This checks the invariants that every fs.transform must fulfill: it is a named list with a finite 4x4 numerical matrix, a known or unknown coordinate space for both sides, a voxel base that matches those spaces, and volume descriptors that only contain supported entries. It is called automatically by the constructor, so that readers, writers and user code can rely on the fields.

Usage

validate.fs.transform(tf)

Value

TRUE if tf is a valid fs.transform instance, and the function stops with an explanatory error message otherwise.

Arguments

tf

the object to check.