Source-space inverse-solution container with dense grid plus optional focal-dipole, coupling and connectivity layers. More...
#include <inv_source_estimate.h>
Public Types | |
| typedef QSharedPointer< InvSourceEstimate > | SPtr |
| typedef QSharedPointer< const InvSourceEstimate > | ConstSPtr |
Public Member Functions | |
| InvSourceEstimate () | |
| InvSourceEstimate (const Eigen::MatrixXd &p_sol, const Eigen::VectorXi &p_vertices, float p_tmin, float p_tstep) | |
| InvSourceEstimate (const InvSourceEstimate &p_SourceEstimate) | |
| InvSourceEstimate (QIODevice &p_IODevice) | |
| void | clear () |
| InvSourceEstimate | reduce (qint32 start, qint32 n) |
| bool | write (QIODevice &p_IODevice) |
| void | write_w (const QString &path) const |
| bool | isEmpty () const |
| InvSourceEstimate & | operator= (const InvSourceEstimate &rhs) |
| int | samples () const |
| Eigen::VectorXi | getIndicesByLabel (const QList< FSLIB::FsLabel > &lPickedLabels, bool bIsClustered) const |
| bool | hasGridData () const |
| bool | hasCouplings () const |
| bool | hasFocalDipoles () const |
| bool | hasPositions () const |
| bool | hasConnectivity () const |
Static Public Member Functions | |
| static bool | read (QIODevice &p_IODevice, InvSourceEstimate &p_stc) |
| static InvSourceEstimate | read_w (const QString &path) |
Public Attributes | |
| Eigen::MatrixXd | data |
| Eigen::VectorXi | vertices |
| Eigen::RowVectorXf | times |
| float | tmin |
| float | tstep |
| InvEstimateMethod | method |
| InvSourceSpaceType | sourceSpaceType |
| InvOrientationType | orientationType |
| Eigen::MatrixX3f | positions |
| std::vector< InvSourceCoupling > | couplings |
| std::vector< InvFocalDipole > | focalDipoles |
| std::vector< InvConnectivity > | connectivity |
Source-space inverse-solution container with dense grid plus optional focal-dipole, coupling and connectivity layers.
Central source-space container produced by every INVLIB inverse solver. Carries the dense (n_sources × n_times) data matrix plus vertex indices, time origin and step, and optional focal dipoles, coupling groups and connectivity layers so one value can represent the output of any algorithm in INVLIB. Replaces mneStcDataRec of MNE-C and implements round-trip STC / W binary I/O with mne-python and mne-c.
Definition at line 87 of file inv_source_estimate.h.

| typedef QSharedPointer<const InvSourceEstimate> INVLIB::InvSourceEstimate::ConstSPtr |
Const shared pointer type for InvSourceEstimate.
Definition at line 91 of file inv_source_estimate.h.
| typedef QSharedPointer<InvSourceEstimate> INVLIB::InvSourceEstimate::SPtr |
Shared pointer type for InvSourceEstimate.
Definition at line 90 of file inv_source_estimate.h.
| InvSourceEstimate::InvSourceEstimate | ( | ) |
Default constructor
Definition at line 50 of file inv_source_estimate.cpp.
| INVLIB::InvSourceEstimate::InvSourceEstimate | ( | const Eigen::MatrixXd & | p_sol, |
| const Eigen::VectorXi & | p_vertices, | ||
| float | p_tmin, | ||
| float | p_tstep ) |
Constructs a source estimation from given data
| [in] | p_sol. | |
| [in] | p_vertices. | |
| [in] | p_tmin. | |
| [in] | p_tstep. |
| InvSourceEstimate::InvSourceEstimate | ( | const InvSourceEstimate & | p_SourceEstimate | ) |
Copy constructor.
| [in] | p_SourceEstimate | Source estimate data which should be copied. |
Definition at line 75 of file inv_source_estimate.cpp.
| InvSourceEstimate::InvSourceEstimate | ( | QIODevice & | p_IODevice | ) |
Constructs a source estimation, by reading from a IO device.
| [in] | p_IODevice | IO device to read from the source estimation. |
Definition at line 93 of file inv_source_estimate.cpp.
| void InvSourceEstimate::clear | ( | ) |
Initializes source estimate.
Definition at line 108 of file inv_source_estimate.cpp.
| VectorXi InvSourceEstimate::getIndicesByLabel | ( | const QList< FSLIB::FsLabel > & | lPickedLabels, |
| bool | bIsClustered ) const |
Returns the indices of sources in the data matrix based on their beloning label.
| [in] | lPickedLabels | The labels base the selection on. |
| [in] | bIsClustered | Whether the source space was clustered. |
Definition at line 389 of file inv_source_estimate.cpp.
|
inline |
Returns true if the estimate contains connectivity results.
Definition at line 338 of file inv_source_estimate.h.
|
inline |
Returns true if the estimate contains source coupling annotations (e.g. RAP-MUSIC pairs/N-tuples).
Definition at line 317 of file inv_source_estimate.h.
|
inline |
Returns true if the estimate contains focal (off-grid) dipole results.
Definition at line 324 of file inv_source_estimate.h.
|
inline |
Returns true if the estimate contains grid-based data (distributed methods or RAP-MUSIC amplitudes).
Definition at line 310 of file inv_source_estimate.h.
|
inline |
Returns true if the estimate carries explicit source positions (discrete source space).
Definition at line 331 of file inv_source_estimate.h.
|
inline |
Returns whether SourceEstimate is empty.
Definition at line 303 of file inv_source_estimate.h.
| InvSourceEstimate & InvSourceEstimate::operator= | ( | const InvSourceEstimate & | rhs | ) |
Assignment Operator
| [in] | rhs | SourceEstimate which should be assigned. |
Definition at line 359 of file inv_source_estimate.cpp.
|
static |
mne_read_stc_file
Reads a source estimate from a given file
| [in] | p_IODevice | IO device to red the stc from. |
| [in,out] | p_stc | the read stc. |
Definition at line 152 of file inv_source_estimate.cpp.
|
static |
Read a .w file (single time-point source estimate).
The .w format stores vertex indices (3-byte big-endian) and float values (4-byte big-endian) for a single time point.
| [in] | path | Path to the .w file. |
Definition at line 256 of file inv_source_estimate.cpp.
| InvSourceEstimate InvSourceEstimate::reduce | ( | qint32 | start, |
| qint32 | n ) |
Reduces the source estimate to selected samples.
| [in] | start | The start index to cut the estimate from. |
| [in] | n | Number of samples to cut from start index. |
Definition at line 126 of file inv_source_estimate.cpp.
| int InvSourceEstimate::samples | ( | ) | const |
Returns the number of samples.
Definition at line 382 of file inv_source_estimate.cpp.
| bool InvSourceEstimate::write | ( | QIODevice & | p_IODevice | ) |
mne_write_stc_file
Writes a stc file
| [in] | p_IODevice | IO device to write the stc to. |
Definition at line 209 of file inv_source_estimate.cpp.
| void InvSourceEstimate::write_w | ( | const QString & | path | ) | const |
Write the first time point of this source estimate to a .w file.
| [in] | path | Path to the .w file to write. |
Definition at line 303 of file inv_source_estimate.cpp.
| std::vector<InvConnectivity> INVLIB::InvSourceEstimate::connectivity |
Pairwise connectivity matrices between sources (one per metric / freq band).
Definition at line 249 of file inv_source_estimate.h.
| std::vector<InvSourceCoupling> INVLIB::InvSourceEstimate::couplings |
Correlated source groups overlaid on the grid.
Definition at line 243 of file inv_source_estimate.h.
| Eigen::MatrixXd INVLIB::InvSourceEstimate::data |
Matrix of shape [n_dipoles x n_times] which contains the data in source space.
Definition at line 228 of file inv_source_estimate.h.
| std::vector<InvFocalDipole> INVLIB::InvSourceEstimate::focalDipoles |
Off-grid focal dipoles (ECD results).
Definition at line 246 of file inv_source_estimate.h.
| InvEstimateMethod INVLIB::InvSourceEstimate::method |
The inverse method that produced this estimate.
Definition at line 235 of file inv_source_estimate.h.
| InvOrientationType INVLIB::InvSourceEstimate::orientationType |
Orientation constraint used (fixed, free, loose).
Definition at line 237 of file inv_source_estimate.h.
| Eigen::MatrixX3f INVLIB::InvSourceEstimate::positions |
3D positions (m) in head coordinates, one row per source. Empty when positions live in an external source space.
Definition at line 240 of file inv_source_estimate.h.
| InvSourceSpaceType INVLIB::InvSourceEstimate::sourceSpaceType |
Source space type (surface, volume, mixed, discrete).
Definition at line 236 of file inv_source_estimate.h.
| Eigen::RowVectorXf INVLIB::InvSourceEstimate::times |
The time vector with n_times steps.
Definition at line 230 of file inv_source_estimate.h.
| float INVLIB::InvSourceEstimate::tmin |
Time starting point.
Definition at line 231 of file inv_source_estimate.h.
| float INVLIB::InvSourceEstimate::tstep |
Time steps within the times vector.
Definition at line 232 of file inv_source_estimate.h.
| Eigen::VectorXi INVLIB::InvSourceEstimate::vertices |
The indices of the dipoles in the different source spaces. In the clustered case, holds the ROI indices.
Definition at line 229 of file inv_source_estimate.h.