v2.0.0
Loading...
Searching...
No Matches
sourceestimateoverlay.h File Reference

Colour-mapped source-time-course overlay that interpolates STC activation onto a cortical mesh and uploads per-vertex RGBA. More...

#include "../disp3D_global.h"
#include <inv/inv_source_estimate.h>
#include <QVector>
#include <QString>
#include <QSharedPointer>
#include <QHash>
#include <QPair>
#include <Eigen/Sparse>
Include dependency graph for sourceestimateoverlay.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SourceEstimateOverlay
 Color-mapped source estimate overlay that interpolates activation values onto a cortical surface mesh. More...

Detailed Description

Colour-mapped source-time-course overlay that interpolates STC activation onto a cortical mesh and uploads per-vertex RGBA.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

SourceEstimateOverlay loads a pair of .stc files (one per hemisphere), holds the source-time-course matrix and the sparse vertex interpolation matrix produced by GeometryInfo / Interpolation, and for any given time index multiplies the two to obtain a per-vertex activation vector.

The vector is then mapped through a configurable colormap (Hot, Jet, MNE) with adjustable normalisation thresholds (fmin, fmid, fmax) and the resulting ABGR bytes are written into the secondary colour slot of the target BrainSurface — the renderer simply switches VisualizationMode to ModeSourceEstimate and the cortex lights up without any geometry change.

Definition in file sourceestimateoverlay.h.