v2.0.0
Loading...
Searching...
No Matches
inv_volume_source_estimate.h
Go to the documentation of this file.
1//=============================================================================================================
21
22#ifndef INV_VOLUME_SOURCE_ESTIMATE_H
23#define INV_VOLUME_SOURCE_ESTIMATE_H
24
25//=============================================================================================================
26// INCLUDES
27//=============================================================================================================
28
29#include "inv_source_estimate.h"
30
31//=============================================================================================================
32// QT INCLUDES
33//=============================================================================================================
34
35#include <QVector>
36
37//=============================================================================================================
38// DEFINE NAMESPACE INVLIB
39//=============================================================================================================
40
41namespace INVLIB
42{
43
44//=============================================================================================================
54{
55public:
56 typedef QSharedPointer<InvVolumeSourceEstimate> SPtr;
57 typedef QSharedPointer<const InvVolumeSourceEstimate> ConstSPtr;
58
59 //=========================================================================================================
61
62 //=========================================================================================================
71 InvVolumeSourceEstimate(const Eigen::MatrixXd& p_sol,
72 const Eigen::VectorXi& p_vertices,
73 float p_tmin, float p_tstep);
74
75 //=========================================================================================================
81 void setShape(const QVector<int>& shape);
82
83 //=========================================================================================================
89 const QVector<int>& shape() const
90 {
91 return m_shape;
92 }
93
94 //=========================================================================================================
100 bool hasShape() const
101 {
102 return m_shape.size() == 3;
103 }
104
105 //=========================================================================================================
114 Eigen::VectorXd toVolume(int timeIdx) const;
115
116 //=========================================================================================================
124 Eigen::Vector3d centreOfMass(int timeIdx) const;
125
126private:
127 QVector<int> m_shape; // {nx, ny, nz}
128};
129
130} // namespace INVLIB
131
132#endif // INV_VOLUME_SOURCE_ESTIMATE_H
#define INVSHARED_EXPORT
Definition inv_global.h:38
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
QSharedPointer< const InvVolumeSourceEstimate > ConstSPtr
QSharedPointer< InvVolumeSourceEstimate > SPtr
void setShape(const QVector< int > &shape)
InvVolumeSourceEstimate(const Eigen::MatrixXd &p_sol, const Eigen::VectorXi &p_vertices, float p_tmin, float p_tstep)
const QVector< int > & shape() const