v2.0.0
Loading...
Searching...
No Matches
inv_guess_data.cpp File Reference

Implementation of the initial-guess grid generation and forward-field pre-computation. More...

#include "inv_guess_data.h"
#include "inv_dipole_fit_data.h"
#include "inv_dipole_forward.h"
#include <mne/mne_surface.h>
#include <mne/mne_source_space.h>
#include <fiff/fiff_stream.h>
#include <fiff/fiff_tag.h>
#include <memory>
#include <QFile>
#include <QDebug>
Include dependency graph for inv_guess_data.cpp:

Go to the source code of this file.

Variables

constexpr int FAIL = -1
constexpr int OK = 0

Detailed Description

Implementation of the initial-guess grid generation and forward-field pre-computation.

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

Implements the constructors that either load a precomputed guess source space from disk or build a regular grid inside the inner-skull BEM surface, the cleanup logic and compute_guess_fields, which walks every guess location and stores the corresponding column- normalised forward-field SVD into the per-guess InvDipoleForward. Refactored from dipole_fit_setup.c (MNE-C).

Definition in file inv_guess_data.cpp.

Variable Documentation

◆ FAIL

int FAIL = -1
constexpr

Definition at line 47 of file inv_guess_data.cpp.

◆ OK

int OK = 0
constexpr

Definition at line 48 of file inv_guess_data.cpp.