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

Implementation of the per-fit HPI pipeline (coil localisation, ordering, transform estimation). More...

#include "inv_hpi_fit.h"
#include "inv_hpi_fit_data.h"
#include "inv_sensor_set.h"
#include "inv_hpi_data_updater.h"
#include "inv_signal_model.h"
#include "inv_hpi_model_parameters.h"
#include <utils/ioutils.h>
#include <cmath>
#include <iostream>
#include <vector>
#include <numeric>
#include <fiff/fiff_cov.h>
#include <fiff/fiff_dig_point_set.h>
#include <fstream>
#include <fwd/fwd_coil_set.h>
#include <Eigen/Dense>
#include <QVector>
#include <QFuture>
#include <QtConcurrent/QtConcurrent>
Include dependency graph for inv_hpi_fit.cpp:

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES

Detailed Description

Implementation of the per-fit HPI pipeline (coil localisation, ordering, transform estimation).

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 per-coil dipole fit using InvHpiFitData, the optional re-ordering that matches the fitted dipoles to the digitised coil layout when the input frequency assignment is unknown, the rigid-body devHeadTrans solver via Procrustes alignment, the head-movement-threshold check and the quaternion- formatted position storage compatible with Neuromag MaxFilter .pos files.

Definition in file inv_hpi_fit.cpp.

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 34 of file inv_hpi_fit.cpp.