From a568a2bbf457283717440ecf8711e87db7a4201e Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Wed, 20 Oct 2021 21:58:13 +0300 Subject: Add 'hot' and 'inferno' colormaps. Make 'inferno' default. --- src/color-map.hpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/color-map.hpp') diff --git a/src/color-map.hpp b/src/color-map.hpp index f466923..dd0072d 100644 --- a/src/color-map.hpp +++ b/src/color-map.hpp @@ -19,6 +19,12 @@ enum class ColorMapType { /* MATLAB jet map */ kJet, + /* Hot */ + kHot, + + /* Inferno */ + kInferno, + /* bicolor maps */ kGray, kPurple, @@ -135,4 +141,20 @@ public: JetColorMap(); }; -#endif \ No newline at end of file +/** + * Hot colormap + */ +class HotColorMap : public InterpolationColorMap { +public: + HotColorMap(); +}; + +/** + * Inferno colormap + */ +class InfernoColorMap: public InterpolationColorMap { +public: + InfernoColorMap(); +}; + +#endif -- cgit v1.2.3