58 else if (x >= 0.375 && x < 0.625)
59 return static_cast<int>(floor(
linearSlope(x, 4, -1.5) * 255));
60 else if (x >= 0.625 && x < 0.875)
61 return static_cast<int>(floor(1.0 * 255));
63 return static_cast<int>(floor(
linearSlope(x, -4, 4.5) * 255));
75 else if (x >= 0.125 && x < 0.375)
76 return static_cast<int>(floor(
linearSlope(x, 4, -0.5) * 255));
77 else if (x >= 0.375 && x < 0.625)
78 return static_cast<int>(floor(1.0 * 255));
79 else if (x >= 0.625 && x < 0.875)
80 return static_cast<int>(floor(
linearSlope(x, -4, 3.5) * 255));
91 return static_cast<int>(floor(
linearSlope(x, 4, 0.5) * 255));
92 else if (x >= 0.125 && x < 0.375)
93 return static_cast<int>(floor(1.0 * 255));
94 else if (x >= 0.375 && x < 0.625)
95 return static_cast<int>(floor(
linearSlope(x, -4, 2.5) * 255));
106 return static_cast<int>(floor(
linearSlope(x, 2.5621, 0.0392) * 255));
108 return static_cast<int>(floor(1.0 * 255));
118 else if (x >= 0.375 && x < 0.75)
119 return static_cast<int>(floor(
linearSlope(x, 2.6667, -1.0) * 255));
121 return static_cast<int>(floor(1.0 * 255));
132 return static_cast<int>(floor(
linearSlope(x, 4, -3) * 255));
143 return static_cast<int>(floor(
linearSlope(x, 2.7832, -0.6090) * 255));
145 return static_cast<int>(floor(1.0 * 255));
155 else if (x >= 0.5781 && x < 0.8125)
156 return static_cast<int>(floor(
linearSlope(x, 4.2662, -2.4663) * 255));
158 return static_cast<int>(floor(1.0 * 255));
169 return static_cast<int>(floor(
linearSlope(x, 5.3333, -4.3333) * 255));
180 return static_cast<int>(floor(
linearSlope(x, 3.5549, -1.9996) * 255));
182 return static_cast<int>(floor(1.0 * 255));
192 else if (x >= 0.8438 && x < 0.9531)
193 return static_cast<int>(floor(
linearSlope(x, 9.1491, -7.72) * 255));
195 return static_cast<int>(floor(1.0 * 255));
206 return static_cast<int>(floor(
linearSlope(x, 21.3220, -20.3220) * 255));
215 return static_cast<int>(floor(
linearSlope(x, 0.8471, 0) * 255));
216 else if (x >= 0.375 && x < 0.75)
217 return static_cast<int>(floor(
linearSlope(x, 0.8889, -0.0157) * 255));
219 return static_cast<int>(floor(
linearSlope(x, 1.396, -0.396) * 255));
228 return static_cast<int>(floor(
linearSlope(x, 0.8471, 0) * 255));
229 else if (x >= 0.375 && x < 0.75)
230 return static_cast<int>(floor(
linearSlope(x, 1.2237, -0.1413) * 255));
232 return static_cast<int>(floor(
linearSlope(x, 0.894, 0.106) * 255));
241 return static_cast<int>(floor(
linearSlope(x, 1.1712, 0.0039) * 255));
242 else if (x >= 0.375 && x < 0.75)
243 return static_cast<int>(floor(
linearSlope(x, 0.8889, 0.1098) * 255));
245 return static_cast<int>(floor(
linearSlope(x, 0.8941, 0.1059) * 255));
254 return static_cast<int>(floor(
linearSlope(x, 1, 1) * 255));
256 return static_cast<int>(floor(1.0 * 255));
265 return static_cast<int>(floor(
linearSlope(x, 1, 1) * 255));
267 return static_cast<int>(floor(
linearSlope(x, -1, 1) * 255));
276 return static_cast<int>(floor(1.0 * 255));
278 return static_cast<int>(floor(
linearSlope(x, -1, 1) * 255));
286 return static_cast<int>(floor(
linearSlope(x, 1, 0) * 255));
294 return static_cast<int>(floor(
linearSlope(x, -1, 1) * 255));
303 return static_cast<int>(floor(1.0 * 255));
Static scalar-to-colour lookup helpers (Jet, Hot, Bone, Viridis, Cool, RedBlue, MNE) used by every pl...
2-D display widgets and visualisation helpers (charts, topography, colour maps).
static int hotG(double v)
static int coolR(double v)
static int hotRNeg2(double v)
static double linearSlope(double x, double m, double n)
static int boneR(double v)
static int hotGNeg2(double v)
static int jetR(double v)
static int hotBNeg2(double v)
static int jetB(double v)
static int jetG(double v)
static int hotBNeg1(double v)
static int hotGNeg1(double v)
static int coolB(double v)
static int hotRNeg1(double v)
static int boneB(double v)
static int hotR(double v)
static int hotB(double v)
static int boneG(double v)
static int coolG(double v)