Volume Cartographer 2.27.0
ColorMaps.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <cstddef>
6
7#include <opencv2/core.hpp>
8
9namespace volcart
10{
11
17enum class ColorMap {
19 Magma = 0,
21 Inferno,
23 Plasma,
25 Viridis,
27 Phase,
29 BWR
30};
31
33std::string ColorMapToString(ColorMap cm);
34
36ColorMap ColorMapFromString(const std::string& str);
37
43cv::Mat GetColorMapLUT(ColorMap cm, std::size_t bins = 256);
44
50cv::Mat GetColorMapLUT(const std::string& name, std::size_t bins = 256);
51
52} // namespace volcart
ColorMap
Built-in color maps.
Definition: ColorMaps.hpp:17
cv::Mat GetColorMapLUT(ColorMap cm, std::size_t bins=256)
Get a color map LUT for use with ApplyLUT.
Volume Cartographer library
ColorMap ColorMapFromString(const std::string &str)
Get a ColorMap from its string name.
std::string ColorMapToString(ColorMap cm)
Get the string name of a ColorMap.