pervertexdata.smoothgaussian | R Documentation |
Perform Gaussian smoothing
pervertexdata.smoothgaussian(
spherical_surface,
data,
fwhm = 15,
truncfactor = 3.5
)
spherical_surface |
an fs.surface instance representing the spherical version ( |
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 |
the smoothed data
This function has been adapted from FreeSurfer and it is subject to the FreeSurfer software license.
## Not run:
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);
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.