Static scalar-to-colour lookup helpers (Jet, Hot, Bone, Viridis, Cool, RedBlue, MNE) used by every plot widget. More...
#include "../../disp_global.h"#include <QSharedPointer>#include <QColor>#include <QVector>#include <Eigen/Core>

Go to the source code of this file.
Classes | |
| class | DISPLIB::ColorMap |
Static lookup helpers mapping scalar values to QRgb / QColor across all DISPLIB palettes. More... | |
Namespaces | |
| namespace | DISPLIB |
| 2-D display widgets and visualisation helpers (charts, topography, colour maps). | |
Variables | |
| const Eigen::MatrixX3i | DISPLIB::m_matViridrisData |
Static scalar-to-colour lookup helpers (Jet, Hot, Bone, Viridis, Cool, RedBlue, MNE) used by every plot widget.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2018-2026 MNE-CPP Authors
ColorMap stores the 256-row RGB tables that back all DISPLIB heat maps and 3-D overlays as constant Eigen::MatrixX3i arrays and exposes pure-function valueToXxx(double v) accessors that map a value in \([0,1]\) to a QRgb / QColor through fast linear interpolation. Bundled palettes include the perceptually-uniform Viridis, the MATLAB classics (Jet, Hot, Bone, Cool), a diverging Red-Blue map for signed data and the asymmetric MNE-Python hot/ hotNeg variants used by the source-estimate overlays.
Definition in file colormap.h.