Weights that paint contact values onto a surface. More...
#include <ieeg_surface_map.h>
Static Public Member Functions | |
| static Eigen::SparseMatrix< double > | weights (const Eigen::MatrixX3f &contacts, const Eigen::MatrixX3f &vertices, double distance=0.01, IeegSurfaceMapMode mode=IeegSurfaceMapMode::Sum, bool project=true) |
Weights that paint contact values onto a surface.
Definition at line 58 of file ieeg_surface_map.h.
|
static |
Compute the vertices x contacts weight matrix.
Equivalent to MNE-Python's stc_near_sensors for a surface. Contacts with a non-finite position get an empty column.
| [in] | contacts | Contact positions, one row per contact, in metres. |
| [in] | vertices | Surface vertex positions in the same frame, one row per vertex. |
| [in] | distance | Reach of each contact in metres. |
| [in] | mode | How weights near one vertex combine. |
| [in] | project | Move each contact to its nearest vertex first, as ECoG contacts lie on, not in, the cortex. |
Definition at line 36 of file ieeg_surface_map.cpp.