Learn R Programming

fsbrain (version 0.5.5)

pervertexdata.smoothgaussian: Perform Gaussian smoothing

Description

Perform Gaussian smoothing

Usage

pervertexdata.smoothgaussian(
  spherical_surface,
  data,
  fwhm = 15,
  truncfactor = 3.5
)

Value

the smoothed data

Arguments

spherical_surface

an fs.surface instance representing the spherical version (lh.sphere or rh.sphere of the subject).

data

numerical vector of per-vertex data for the surface

fwhm

double, the full width at half maximum for the Gaussian kernel

truncfactor

the factor after how many stddevs to truncate the Gaussian kernel

Examples

Run this code
if (FALSE) {
sjd = fsaverage.path();
spherical_surface = subject.surface(sjd, "fsaverage3",
  surface="sphere", hemi="lh");
vdata = subject.morph.native(sjd, "fsaverage3", "thickness", hemi="lh");
vdata_smoothed = pervertexdata.smoothgaussian(spherical_surface,
 vdata, fwhm = 15);
vis.data.on.subject(sjd, "fsaverage3", morph_data_lh = vdata);
vis.data.on.subject(sjd, "fsaverage3", morph_data_lh = vdata_smoothed);
}

Run the code above in your browser using DataLab