v2.0.0
Loading...
Searching...
No Matches
mne_proj_data.cpp
Go to the documentation of this file.
1//=============================================================================================================
35
36//=============================================================================================================
37// INCLUDES
38//=============================================================================================================
39
40#include "mne_proj_data.h"
41#include "mne_surface.h"
42#include "mne_triangle.h"
43
44//=============================================================================================================
45// USED NAMESPACES
46//=============================================================================================================
47
48using namespace MNELIB;
49
50//=============================================================================================================
51// DEFINE MEMBER METHODS
52//=============================================================================================================
53
55{
56 a.resize(s->ntri);
57 b.resize(s->ntri);
58 c.resize(s->ntri);
59 act.resize(s->ntri);
60
61 const MNETriangle* tri = s->tris.data();
62 for (int k = 0; k < s->ntri; k++, tri++) {
63 a[k] = tri->r12.dot(tri->r12);
64 b[k] = tri->r13.dot(tri->r13);
65 c[k] = tri->r12.dot(tri->r13);
66
67 act[k] = 1;
68 }
69 nactive = s->ntri;
70}
MNEProjData class declaration.
MNETriangle class declaration.
MNESurface class declaration.
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
This defines a surface.
Definition mne_surface.h:79
std::vector< MNETriangle > tris
Per-triangle geometric data for a cortical or BEM surface.
Eigen::Vector3f r13
Eigen::Vector3f r12