pulsatrix
Loading...
Searching...
No Matches
colormap.hpp
Go to the documentation of this file.
1
5#pragma once
6
7namespace pulsatrix {
8
10struct RgbColor {
11 float r;
12 float g;
13 float b;
14};
15
23[[nodiscard]] float NormalizeUnsigned(float value, float max_abs);
24
32[[nodiscard]] float NormalizeSigned(float value, float max_abs);
33
45[[nodiscard]] RgbColor ViridisColormap(float normalized_value);
46
55[[nodiscard]] RgbColor DivergingColormap(float signed_normalized_value);
56
57} // namespace pulsatrix
Definition acquisition_functions.hpp:16
float NormalizeSigned(float value, float max_abs)
Normalizes value into [-1, 1] against a known maximum absolute magnitude, for signed quantities such ...
RgbColor ViridisColormap(float normalized_value)
Viridis colormap – perceptually uniform, colorblind-safe – for sequential/unsigned magnitude (hc_info...
float NormalizeUnsigned(float value, float max_abs)
Normalizes value into [0, 1] against a known maximum magnitude, for unsigned (magnitude-only) quantit...
RgbColor DivergingColormap(float signed_normalized_value)
Blue-White-Red diverging colormap for signed attribution (positive/negative contribution) – hue encod...
An RGB color, each channel in [0, 1].
Definition colormap.hpp:10
float g
Definition colormap.hpp:12
float r
Definition colormap.hpp:11
float b
Definition colormap.hpp:13