ciftiTools (version 0.1.6.0)

coordlist_to_vol: Convert coordinate list to volume.

Description

Converts a sparse coordinate list to its non-sparse volumetric representation.

Usage

coordlist_to_vol(coords, fill = FALSE)

Arguments

coords

The sparse coordinate list. Should be a data.frame or matrix with voxels along the rows and three or four columns. The first three columns should be integers indicating the spatial coordinates of the voxel. If the fourth column is present, it will be the value used for that voxel. If it is absent, the value will be TRUE or 1 if fill is not those values, and FALSE or 0 if fill is. The data type will be the same as that of fill. fill. The fourth column must be logical or numeric.

fill

Fill value for the volume. Must be logical or numeric. Default: FALSE.

Value

The volumetric data