iridescence
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
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
@ PHASE
Definition colormap.hpp:24
@ PUBUGN
Definition colormap.hpp:20
@ TURBO
Definition colormap.hpp:10
@ SPRING
Definition colormap.hpp:14
@ BLUE_RED
Definition colormap.hpp:19
@ TURBID
Definition colormap.hpp:21
@ PASTEL
Definition colormap.hpp:22
@ NUM_COLORMAPS
Definition colormap.hpp:28
@ WINTER
Definition colormap.hpp:17
@ AUTUMN
Definition colormap.hpp:16
@ HELIX
Definition colormap.hpp:23
@ CURL
Definition colormap.hpp:26
@ CIVIDIS
Definition colormap.hpp:12
@ COOL_WARM
Definition colormap.hpp:27
@ SUMMER
Definition colormap.hpp:15
@ OCEAN
Definition colormap.hpp:13
@ JET
Definition colormap.hpp:11
@ VEGETATION
Definition colormap.hpp:25
@ GREAN_YELLOW
Definition colormap.hpp:18
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)