MNE-CPP
0.1.9
A Framework for Electrophysiology
src
libraries
mne
c
mne_patch_info.h
Go to the documentation of this file.
1
//=============================================================================================================
37
#ifndef MNEPATCHINFO_H
38
#define MNEPATCHINFO_H
39
40
//=============================================================================================================
41
// INCLUDES
42
//=============================================================================================================
43
44
#include "../mne_global.h"
45
46
//=============================================================================================================
47
// EIGEN INCLUDES
48
//=============================================================================================================
49
50
#include <Eigen/Core>
51
52
//=============================================================================================================
53
// QT INCLUDES
54
//=============================================================================================================
55
56
#include <QSharedPointer>
57
58
//=============================================================================================================
59
// DEFINE NAMESPACE MNELIB
60
//=============================================================================================================
61
62
namespace
MNELIB
63
{
64
65
//=============================================================================================================
66
// FORWARD DECLARATIONS
67
//=============================================================================================================
68
69
class
MneSourceSpaceOld;
70
71
//=============================================================================================================
77
class
MNESHARED_EXPORT
MnePatchInfo
78
{
79
public
:
80
typedef
QSharedPointer<MnePatchInfo>
SPtr
;
81
typedef
QSharedPointer<const MnePatchInfo>
ConstSPtr
;
83
//=========================================================================================================
88
MnePatchInfo
();
89
90
//=========================================================================================================
95
~
MnePatchInfo
();
96
97
//=========================================================================================================
101
static
void
calculate_patch_area(
MneSourceSpaceOld
* s,
MnePatchInfo
* p);
102
103
//=========================================================================================================
107
static
void
calculate_normal_stats(
MneSourceSpaceOld
* s,
MnePatchInfo
* p);
108
109
public
:
110
int
vert;
/* Which vertex does this apply to */
111
int
*memb_vert;
/* Which vertices constitute the patch? */
112
int
nmemb;
/* How many? */
113
float
area;
/* Area of the patch */
114
float
ave_nn[3];
/* Average normal */
115
float
dev_nn;
/* Average deviation of the patch normals from the average normal */
116
117
// ### OLD STRUCT ###
118
//typedef struct {
119
// int vert; /* Which vertex does this apply to */
120
// int *memb_vert; /* Which vertices constitute the patch? */
121
// int nmemb; /* How many? */
122
// float area; /* Area of the patch */
123
// float ave_nn[3]; /* Average normal */
124
// float dev_nn; /* Average deviation of the patch normals from the average normal */
125
//} *mnePatchInfo,mnePatchInfoRec;
126
};
127
128
//=============================================================================================================
129
// INLINE DEFINITIONS
130
//=============================================================================================================
131
}
// NAMESPACE MNELIB
132
133
#endif // MNEPATCHINFO_H
MNESHARED_EXPORT
#define MNESHARED_EXPORT
Definition:
mne_global.h:56
MNELIB::MneSourceSpaceOld
This defines a source space.
Definition:
mne_source_space_old.h:76
MNELIB::MnePatchInfo
One item in a derivation data set.
Definition:
mne_patch_info.h:77
MNELIB::MnePatchInfo::ConstSPtr
QSharedPointer< const MnePatchInfo > ConstSPtr
Definition:
mne_patch_info.h:81
MNELIB::MnePatchInfo::SPtr
QSharedPointer< MnePatchInfo > SPtr
Definition:
mne_patch_info.h:80
Generated on Wed Aug 9 2023 17:55:42 for MNE-CPP by
1.8.17