v2.0.0
Loading...
Searching...
No Matches
colormap.h File Reference

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>
Include dependency graph for colormap.h:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

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

Author
Lorenz Esch loren.nosp@m.z.es.nosp@m.ch@tu.nosp@m.-ilm.nosp@m.enau..nosp@m.de; Juan GPC jgarc.nosp@m.iapr.nosp@m.ieto@.nosp@m.mgh..nosp@m.harva.nosp@m.rd.e.nosp@m.du; Gabriel Motta gabri.nosp@m.elbe.nosp@m.nmott.nosp@m.a@gm.nosp@m.ail.c.nosp@m.om; Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
0.1.0
Date
July 2018

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.