Implementation of UTILSLIB::PolhemusCoregistration — fiducial-based head→device rigid alignment. More...
#include "polhemus_coregistration.h"#include "acquired_points.h"#include <Eigen/Dense>#include <QSettings>#include <cmath>
Go to the source code of this file.
Implementation of UTILSLIB::PolhemusCoregistration — fiducial-based head→device rigid alignment.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
The three cardinal fiducials (LPA, NAS, RPA) define an orthonormal head frame whose construction matches the MEG/EEG convention used throughout mne-cpp. The head→device transform is obtained by composing that frame with the pre- calibrated tracker-to-device offset and with the live tracker pose streamed from the Polhemus connection, all wrapped in QMatrix4x4 so callers can hand the result straight to the OpenGL viewer in DISP3DLIB or to the navigation export.
Definition in file polhemus_coregistration.cpp.