resample_surf {ciftiTools}R Documentation

Resample a "surf" object

Description

Resample a "surf" object by writing it to a GIFTI, using the Connectome Workbench to resample it, and then reading the new file. The barycentric resampling method, which is recommended for anatomical surfaces, will be used.

Usage

resample_surf(surf, resamp_res, hemisphere = c("left", "right"))

Arguments

surf

A "surf" object

resamp_res

The desired resolution

hemisphere

"left" or "right". Only used if not indicated by surf$hemisphere. An error will be raised if it does not match the hemisphere indicated in the intermediate written GIFTI.

Value

The new "surf"

Connectome Workbench

This function interfaces with the "-surface-resample" Workbench command.

See Also

Other surface-related: add_surf(), boundary_mask_surf(), edit_mask_surf(), even_vert_samp(), is.surf(), load_surf(), mask_surf(), read_surf(), rotate_surf(), surf_area(), view_surf(), write_surf_gifti()


[Package ciftiTools version 0.14.0 Index]