PICCANTE  0.4
The hottest HDR imaging library!
color_conv_rgb_to_xyz.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_RGB_TO_XYZ_HPP
19 #define PIC_COLORS_COLOR_CONV_RGB_TO_XYZ_HPP
20 
21 #include "../colors/color_conv.hpp"
22 
23 namespace pic {
24 
25 const float mtxRGBtoXYZ[] = { 0.4124f, 0.3576f, 0.1805f,
26  0.2126f, 0.7152f, 0.0722f,
27  0.0193f, 0.1192f, 0.9505f
28  };
29 
30 const float mtxXYZtoRGB[] = { 3.2406f, -1.5372f, -0.4986f,
31  -0.9689f, 1.8758f, 0.0415f,
32  0.0557f, -0.2040f, 1.0570f
33  };
34 
39 {
40 public:
41 
46  {
47  memcpy(mtx, mtxRGBtoXYZ, 9 * sizeof(float));
48  memcpy(mtx_inv, mtxXYZtoRGB, 9 * sizeof(float));
49  }
50 };
51 
52 } // end namespace pic
53 
54 #endif /* PIC_COLORS_COLOR_SPACE_XYZ_HPP */
55 
float mtx_inv[9]
Definition: display.hpp:32
The ColorConvRGBtoXYZ class.
Definition: color_conv_rgb_to_xyz.hpp:38
float mtx[9]
Definition: display.hpp:32
const float mtxRGBtoXYZ[]
Definition: color_conv_rgb_to_xyz.hpp:25
ColorConvRGBtoXYZ()
ColorConvRGBtoXYZ.
Definition: color_conv_rgb_to_xyz.hpp:45
const float mtxXYZtoRGB[]
Definition: color_conv_rgb_to_xyz.hpp:30
Definition: bilateral_separation.hpp:25
The ColorConv class.
Definition: color_conv.hpp:26