CTF / 4D Neuroimaging software gradient-compensation matrix block (FIFFB_MNE_CTF_COMP_DATA). More...
#include "fiff_global.h"#include "fiff_types.h"#include "fiff_named_matrix.h"#include <QSharedPointer>#include <Eigen/Core>#include <memory>

Go to the source code of this file.
Classes | |
| class | FIFFLIB::FiffCtfComp |
| One CTF software-gradient compensation matrix: grade kind, calibration flag and the gradiometer × reference named matrix. More... | |
Namespaces | |
| namespace | FIFFLIB |
| FIFF file I/O, in-memory data structures and high-level readers/writers. | |
CTF / 4D Neuroimaging software gradient-compensation matrix block (FIFFB_MNE_CTF_COMP_DATA).
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2012-2026 MNE-CPP Authors
CTF reference-gradient compensation suppresses environmental interference by subtracting a linear combination of reference-channel signals from each gradiometer. The compensation state is stored as a list of named matrices under FIFFB_MNE_CTF_COMP / FIFFB_MNE_CTF_COMP_DATA, one matrix per supported compensation grade. FiffCtfComp is the C++ wrapper for one of those matrices: a kind tag selecting the grade, save-as-calibrated flag, and a FiffNamedMatrix whose rows are the gradiometer channel names and columns the reference channels.
Combined with the source / destination grade fields tracked in FiffInfo this lets FiffRawData::compensate move continuously recorded data between compensation grades on demand, matching the mne.io.ctf.RawCTF._comp behaviour in MNE-Python.
Definition in file fiff_ctf_comp.h.