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//=============================================================================================================
52{
53public:
54 typedef QSharedPointer<InvVolumeSourceEstimate> SPtr;
55 typedef QSharedPointer<const InvVolumeSourceEstimate> ConstSPtr;
56
57 //=========================================================================================================
59
60 //=========================================================================================================
69 InvVolumeSourceEstimate(const Eigen::MatrixXd& p_sol,
70 const Eigen::VectorXi& p_vertices,
71 float p_tmin, float p_tstep);
72
73 //=========================================================================================================
79 void setShape(const QVector<int>& shape);
80
81 //=========================================================================================================
85 const QVector<int>& shape() const { return m_shape; }
86
87 //=========================================================================================================
91 bool hasShape() const { return m_shape.size() == 3; }
92
93 //=========================================================================================================
102 Eigen::VectorXd toVolume(int timeIdx) const;
103
104 //=========================================================================================================
112 Eigen::Vector3d centreOfMass(int timeIdx) const;
113
114private:
115 QVector<int> m_shape; // {nx, ny, nz}
116};
117
118} // namespace INVLIB
119
120#endif // INV_VOLUME_SOURCE_ESTIMATE_H
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
#define INVSHARED_EXPORT
Definition inv_global.h:38
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