|
MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Go to the documentation of this file.
43 #include "../../disp_global.h"
49 #include <QSharedPointer>
70 const Eigen::MatrixX3i m_matViridrisData = (Eigen::MatrixX3i(256,3) << 68, 1, 84,
325 253, 231, 37).finished();
340 typedef QSharedPointer<ColorMap>
SPtr;
365 static inline QRgb valueToColor(
double v,
const QString& sMap);
375 static inline QRgb valueToJet(
double v);
385 static inline QRgb valueToHot(
double v);
395 static inline QRgb valueToHotNegative1(
double v);
405 static inline QRgb valueToHotNegative2(
double v);
415 static inline QRgb valueToBone(
double v);
425 static inline QRgb valueToRedBlue(
double v);
435 static inline QRgb valueToCool(
double v);
445 static QRgb valueToViridis(
double v);
455 static QRgb valueToViridisNegated(
double v);
468 static double linearSlope(
double x,
double m,
double n);
478 static int jetR(
double v);
488 static int jetG(
double v);
498 static int jetB(
double v);
508 static int hotR(
double v);
518 static int hotG(
double v);
528 static int hotB(
double v);
538 static int hotRNeg1(
double v);
548 static int hotGNeg1(
double v);
558 static int hotBNeg1(
double v);
568 static int hotRNeg2(
double v);
578 static int hotGNeg2(
double v);
588 static int hotBNeg2(
double v);
598 static int boneR(
double v);
608 static int boneG(
double v);
618 static int boneB(
double v);
628 static int rbR(
double v);
638 static int rbG(
double v);
648 static int rbB(
double v);
658 static int coolR(
double v);
668 static int coolG(
double v);
678 static int coolB(
double v);
694 if(sMap ==
"HotNegative1") {
698 if(sMap ==
"HotNegative2") {
706 if(sMap ==
"RedBlue") {
714 if(sMap ==
"Viridis") {
718 if(sMap ==
"ViridisNegated") {
770 QRgb p_qRgb = qRgb(
rbR(v),
rbG(v),
rbB(v));
786 if((uint)v*255 >= m_matViridrisData.rows()) {
790 QRgb p_qRgb = qRgb(m_matViridrisData((uint)v*255,0), m_matViridrisData((uint)v*255,1), m_matViridrisData((uint)v*255,2));
798 if(255-(uint)v*255 >= m_matViridrisData.rows() || 255-(uint)v*255 < 0) {
802 QRgb p_qRgb = qRgb(m_matViridrisData(255-(uint)v*255,0), m_matViridrisData(255-(uint)v*255,1), m_matViridrisData(255-(uint)v*255,2));
static QRgb valueToHot(double v)
#define DISPSHARED_EXPORT
static int coolB(double v)
static int jetB(double v)
static int hotR(double v)
static QRgb valueToViridis(double v)
QSharedPointer< const ColorMap > ConstSPtr
static QRgb valueToRedBlue(double v)
static int hotGNeg2(double v)
static QRgb valueToColor(double v, const QString &sMap)
static int hotBNeg2(double v)
static int coolR(double v)
static int hotRNeg1(double v)
static int hotG(double v)
static QRgb valueToCool(double v)
static QRgb valueToJet(double v)
static QRgb valueToHotNegative2(double v)
static int coolG(double v)
static QRgb valueToHotNegative1(double v)
Color map RGB transformations.
static int hotBNeg1(double v)
static QRgb valueToViridisNegated(double v)
static QRgb valueToBone(double v)
static int hotGNeg1(double v)
static int boneB(double v)
static int boneG(double v)
static int hotB(double v)
static int jetR(double v)
QSharedPointer< ColorMap > SPtr
static int boneR(double v)
static int hotRNeg2(double v)
static int jetG(double v)