forked from alicevision/AliceVision
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjetColorMap.hpp
More file actions
34 lines (28 loc) · 1.07 KB
/
Copy pathjetColorMap.hpp
File metadata and controls
34 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// This file is part of the AliceVision project.
// Copyright (c) 2017 AliceVision contributors.
// This Source Code Form is subject to the terms of the Mozilla Public License,
// v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
#pragma once
#include <aliceVision/mvsData/Color.hpp>
#include <aliceVision/mvsData/Rgb.hpp>
namespace aliceVision {
/**
* @brief Get the RGB color from the jet colormap for the given value.
* @param[in] value from range 0.0 1.0
* @return RGB value :
* - 0.0f > 'value' > 1.0f: color from jet colormap
* - 'value' <= 0.0f: black
* - 'value' >= 1.0f: white
*/
rgb getRGBFromJetColorMap(float value);
/**
* @brief Get the float color from the jet colormap for the given value.
* @param[in] value from range 0.0 1.0
* @return float color value :
* - 0.0f > 'value' > 1.0f: color from jet colormap
* - 'value' <= 0.0f: black
* - 'value' >= 1.0f: white
*/
Color getColorFromJetColorMap(float value);
} // namespace aliceVision