surf_to_vol {VertexWiseR}R Documentation

Surface to volume

Description

Converts surface data to volumetric data (.nii file)

Usage

surf_to_vol(surf_data, filename, VWR_check = TRUE)

Arguments

surf_data

A vector object containing the surface data, either in fsaverage5 or fsaverage6 space. It can only be one row of vertices (no cohort surface data matrix).

filename

A string object containing the desired name of the output .nii file (default is 'output.nii' in the R temporary directory (tempdir())).

VWR_check

A boolean object specifying whether to check and validate system requirements. Default is TRUE.

Value

A .nii volume file

Examples

CTv = runif(20484,min=0, max=100);
surf_to_vol(CTv, filename = paste0(tempdir(),'/volume.nii'), VWR_check=FALSE)

[Package VertexWiseR version 1.0.0 Index]