Extract ROI-level time courses from vertex-level source estimates. More...
#include <inv_label_time_course.h>
Static Public Member Functions | |
| static Eigen::MatrixXd | extract (const InvSourceEstimate &stc, const QList< FSLIB::FsLabel > &labels, const QString &sMode="mean_flip", bool bAllowEmpty=false) |
| static Eigen::VectorXd | computeSignFlip (const Eigen::MatrixXd &stcData) |
Extract ROI-level time courses from vertex-level source estimates.
Provides the five standard aggregation modes used in MNE-Python's extract_label_time_course():
Definition at line 73 of file inv_label_time_course.h.
|
static |
Compute sign-flip vector for a label based on vertex normals.
For surface source spaces, the sign of each vertex's contribution should be flipped if its normal opposes the dominant direction in the label. This ensures coherent averaging.
| [in] | stcData | Source data for the label vertices (n_verts × n_times). |
Definition at line 60 of file inv_label_time_course.cpp.
|
static |
Extract label time courses from a source estimate.
| [in] | stc | Source estimate (vertices × times). |
| [in] | labels | List of labels defining ROIs. |
| [in] | sMode | Aggregation mode: "mean", "mean_flip", "pca_flip", "max", "auto". |
| [in] | bAllowEmpty | If true, empty labels produce zero rows; if false, skip them. |
Definition at line 80 of file inv_label_time_course.cpp.