v2.0.0
Loading...
Searching...
No Matches
mne_proj_data.cpp
Go to the documentation of this file.
1//=============================================================================================================
15
16//=============================================================================================================
17// INCLUDES
18//=============================================================================================================
19
20#include "mne_proj_data.h"
21#include "mne_surface.h"
22#include "mne_triangle.h"
23
24//=============================================================================================================
25// USED NAMESPACES
26//=============================================================================================================
27
28using namespace MNELIB;
29
30//=============================================================================================================
31// DEFINE MEMBER METHODS
32//=============================================================================================================
33
35{
36 a.resize(s->ntri);
37 b.resize(s->ntri);
38 c.resize(s->ntri);
39 act.resize(s->ntri);
40
41 const MNETriangle* tri = s->tris.data();
42 for (int k = 0; k < s->ntri; k++, tri++) {
43 a[k] = tri->r12.dot(tri->r12);
44 b[k] = tri->r13.dot(tri->r13);
45 c[k] = tri->r12.dot(tri->r13);
46
47 act[k] = 1;
48 }
49 nactive = s->ntri;
50}
Lightweight triangulated surface (vertices, triangles, normals) used by surface-based routines.
Legacy MNE-C aggregator for SSP projections plus the channel list they apply to.
Triangle descriptor with cached centroid, area and normal vectors.
Core MNE data structures (source spaces, source estimates, hemispheres).
Eigen::VectorXf b
Eigen::VectorXf c
Eigen::VectorXi act
MNEProjData(const MNELIB::MNESurface *s)
Eigen::VectorXf a
Lightweight triangulated surface (vertices, triangles, normals).
Definition mne_surface.h:66
std::vector< MNETriangle > tris
Per-triangle geometric data for a cortical or BEM surface.
Eigen::Vector3f r13
Eigen::Vector3f r12