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

Builds the dense sensor-to-surface mapping matrix and the iso-contour overlay for MEG / EEG evoked data. More...

#include "../disp3D_global.h"
#include "core/viewstate.h"
#include <fiff/fiff_evoked.h>
#include <fiff/fiff_coord_trans.h>
#include <Eigen/Core>
#include <QMap>
#include <QVector>
#include <QString>
#include <memory>
#include <vector>
Include dependency graph for sensorfieldmapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SensorFieldMapper
 Sensor-to-surface field mapper that interpolates MEG/EEG measurements onto cortical meshes and generates iso-contour overlays. More...

Detailed Description

Builds the dense sensor-to-surface mapping matrix and the iso-contour overlay for MEG / EEG evoked data.

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

SensorFieldMapper holds the loaded FIFFLIB::FiffEvoked, the channel picks, the SSP projectors and the per-modality (MEG on head or helmet, EEG on scalp) target surface keys. On demand it calls into the fwd library's field-map kernel to produce a dense (n_vertices x n_channels) mapping matrix that is then multiplied by each time-point of the evoked data to colour the target surface.

The mapped scalar field is also contoured into a small set of iso-lines (red for positive, blue for negative) that are uploaded as line-strip meshes overlaid on the surface — the classic MNE-Suite field-map look.

Definition in file sensorfieldmapper.h.