MNEProjData
Namespace: MNELIB · Library: MNE Library
#include <mne/mne_proj_data.h>
class MNELIB::MNEProjData
Replaces *projData,projDataRec struct (mne_project_to_surface.c).
Auxiliary projection data computed from MNEProjOp for efficient repeated application.
Public Methods
MNEProjData(s)
Constructs the MNEProjData.
Parameters:
- s : *const MNESurface ** Surface whose triangles are precomputed (non-owning, must not be null); all triangles start active.
~MNEProjData()
Destroys the MNEProjData.
Example
No example of its own: Search-acceleration record (triangle activity mask) internal to MNESurface::project_to_surface; callers use MNEProjectToSurface.
It is exercised by:
src/examples/ex_mne_api/main.cpp
MNEProjectToSurface projector(innerSkull);
MatrixXf points(2, 3);
points << 0.0f, 0.0f, 0.12f, 0.05f, 0.01f, 0.03f; // one point outside, one inside the skull
MatrixXf onSurface;
VectorXi triangle;
VectorXf distance;
projector.find_closest_on_surface(points, points.rows(), onSurface, triangle, distance);
From ex_mne_api.
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>