gtsam_points
Loading...
Searching...
No Matches
colormap.hpp
Go to the documentation of this file.
1#ifndef GLK_COLORMAP_HPP
2#define GLK_COLORMAP_HPP
3
4#include <vector>
5#include <Eigen/Core>
6
7namespace glk {
8
9enum class COLORMAP {
10 TURBO = 0,
11 JET,
12 CIVIDIS,
13 OCEAN,
14 SPRING,
15 SUMMER,
16 AUTUMN,
17 WINTER,
20 PUBUGN,
21 TURBID,
22 PASTEL,
23 HELIX,
24 PHASE,
26 CURL,
29};
30
31Eigen::Vector4i colormap(COLORMAP type, int x);
32Eigen::Vector4f colormapf(COLORMAP type, float x);
33Eigen::Vector4i colormap_categorical(COLORMAP type, int x, int num_categories);
34Eigen::Vector4f colormap_categoricalf(COLORMAP type, int x, int num_categories);
35
36std::vector<const char*> colormap_names();
37std::array<std::array<unsigned char, 3>, 256> colormap_table(COLORMAP type);
38
39} // namespace glk
40
41#endif
Definition async_buffer_copy.hpp:6
Eigen::Vector4i colormap_categorical(COLORMAP type, int x, int num_categories)
COLORMAP
Definition colormap.hpp:9
Eigen::Vector4f colormapf(COLORMAP type, float x)
Eigen::Vector4i colormap(COLORMAP type, int x)
std::vector< const char * > colormap_names()
std::array< std::array< unsigned char, 3 >, 256 > colormap_table(COLORMAP type)
Eigen::Vector4f colormap_categoricalf(COLORMAP type, int x, int num_categories)