54 if (kernel.rows() == 0 || kernel.cols() == 0) {
55 qWarning(
"MNECorticalMap::makeCorticalMap - Inverse kernel is empty. "
56 "Make sure the inverse operator has been prepared (assemble_kernel).");
61 if (!fwd.
sol || fwd.
sol->data.rows() == 0) {
62 qWarning(
"MNECorticalMap::makeCorticalMap - Forward solution is empty.");
65 const MatrixXd& gain = fwd.
sol->data;
68 if (kernel.cols() != gain.rows()) {
69 qWarning(
"MNECorticalMap::makeCorticalMap - Dimension mismatch: "
70 "kernel is %lld x %lld, gain is %lld x %lld",
71 static_cast<long long>(kernel.rows()),
72 static_cast<long long>(kernel.cols()),
73 static_cast<long long>(gain.rows()),
74 static_cast<long long>(gain.cols()));
81 MatrixXd M = kernel * gain;
Pre-computed inverse operator (whitened SVD of the forward model) for MNE/dSPM/sLORETA.
Vertex-to-vertex map between two cortical surfaces (e.g. subject -> fsaverage).
Forward solution (gain matrix mapping source dipoles to sensor measurements).
Matrix paired with row and column name lists, the on-disk form of FIFFB_PROJ_ITEM / FIFFB_MNE_NAMED_M...
Full FIFF measurement metadata: everything from FIFFB_MEAS / FIFFB_MEAS_INFO needed to interpret a re...
Core MNE data structures (source spaces, source estimates, hemispheres).
FIFF file I/O, in-memory data structures and high-level readers/writers.
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
static Eigen::MatrixXd makeCorticalMap(const MNEForwardSolution &fwd, const MNEInverseOperator &inv, const FIFFLIB::FiffInfo &info)
In-memory representation of an -fwd.fif forward solution.
FIFFLIB::FiffNamedMatrix::SDPtr sol
MNE-style inverse operator.