PICCANTE  0.4
The hottest HDR imaging library!
color_conv_xyz_to_lms.hpp
Go to the documentation of this file.
1 /*
2 
3 PICCANTE
4 The hottest HDR imaging library!
5 http://vcg.isti.cnr.it/piccante
6 
7 Copyright (C) 2014
8 Visual Computing Laboratory - ISTI CNR
9 http://vcg.isti.cnr.it
10 First author: Francesco Banterle
11 
12 This Source Code Form is subject to the terms of the Mozilla Public
13 License, v. 2.0. If a copy of the MPL was not distributed with this
14 file, You can obtain one at http://mozilla.org/MPL/2.0/.
15 
16 */
17 
18 #ifndef PIC_COLORS_COLOR_CONV_XYZ_TO_LMS_HPP
19 #define PIC_COLORS_COLOR_CONV_XYZ_TO_LMS_HPP
20 
21 #include "../colors/color_conv.hpp"
22 
23 namespace pic {
24 
25 const float mtxXYZtoLMS[] = { 0.3897f, 0.6890f, -0.0787f,
26  -0.2298f, 1.1834f, 0.0464f,
27  0.0f, 0.0f, 1.0f
28  };
29 
30 const float mtxLMStoXYZ[] = { 1.9102f, -1.112f, 0.2019f,
31  0.3709f, 0.6291f, 5.1332e-6f,
32  0.0f, 0.0f, 1.0f
33  };
34 
39 {
40 public:
41 
46  {
47  memcpy(mtx, mtxXYZtoLMS, 9 * sizeof(float));
48  memcpy(mtx_inv, mtxLMStoXYZ, 9 * sizeof(float));
49  }
50 };
51 
52 } // end namespace pic
53 
54 #endif /* PIC_COLORS_COLOR_SPACE_XYZ_HPP */
float mtx_inv[9]
Definition: display.hpp:32
const float mtxLMStoXYZ[]
Definition: color_conv_xyz_to_lms.hpp:30
float mtx[9]
Definition: display.hpp:32
ColorConvXYZtoLMS()
ColorConvXYZtoLMS.
Definition: color_conv_xyz_to_lms.hpp:45
The ColorConvXYZtoLMS class.
Definition: color_conv_xyz_to_lms.hpp:38
Definition: bilateral_separation.hpp:25
The ColorConv class.
Definition: color_conv.hpp:26
const float mtxXYZtoLMS[]
Definition: color_conv_xyz_to_lms.hpp:25