smooth_hrf_assignments | R Documentation |
This function tries to smooth out a voxel-wise label map of HRF assignments by iterating over each voxel, checking its neighbors, picking the "most common" neighbor label if that reduces cost, etc.
smooth_hrf_assignments(
reassigned_hrfs,
L_best_hrfs,
voxel_coords,
lambda = 0.1,
n_iterations = 5,
k = 6
)
reassigned_hrfs |
An integer vector of length n_voxels |
L_best_hrfs |
A matrix of reference HRFs for each label |
voxel_coords |
A matrix of voxel coordinates (n_voxels x 3), or similar |
lambda |
Not actually used, but left here as a param |
n_iterations |
Number of smoothing passes |
k |
Number of neighbors |
A vector of the same length as reassigned_hrfs
, updated (smoothed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.