v2.0.0
Loading...
Searching...
No Matches
IEEGLIB::IeegSurfaceMap Class Reference

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)

Detailed Description

Weights that paint contact values onto a surface.

Definition at line 58 of file ieeg_surface_map.h.

Member Function Documentation

◆ weights()

Eigen::SparseMatrix< double > IeegSurfaceMap::weights ( const Eigen::MatrixX3f & contacts,
const Eigen::MatrixX3f & vertices,
double distance = 0.01,
IeegSurfaceMapMode mode = IeegSurfaceMapMode::Sum,
bool project = true )
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.

Parameters
[in]contactsContact positions, one row per contact, in metres.
[in]verticesSurface vertex positions in the same frame, one row per vertex.
[in]distanceReach of each contact in metres.
[in]modeHow weights near one vertex combine.
[in]projectMove each contact to its nearest vertex first, as ECoG contacts lie on, not in, the cortex.
Returns
Sparse vertices x contacts weights.

Definition at line 36 of file ieeg_surface_map.cpp.


The documentation for this class was generated from the following files: