PICCANTE  0.4
The hottest HDR imaging library!
color_conv_lms_to_lalphabeta.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_LMS_TO_L_ALPHA_BETA_HPP
19 #define PIC_COLORS_COLOR_CONV_LMS_TO_L_ALPHA_BETA_HPP
20 
21 #include "../colors/color_conv.hpp"
22 
23 namespace pic {
24 
29 {
30 public:
31 
36  {
37  float c1 = 1.0f / sqrtf(3.0f);
38  float c2 = 1.0f / sqrtf(6.0f);
39  float c3 = 1.0f / sqrtf(2.0f);
40  float c4 = -c2 * 2.0f;
41 
42  float mtxLMStoLalphabeta[] = { c1, c1, c1,
43  c2, c2, c4,
44  c3, -c3, 0.0f};
45 
46  float mtxLalphabetatoLMS[] = { c1, c2, c3,
47  c1, c2, -c3,
48  c1, c4, 0.0f};
49 
50  memcpy(mtx, mtxLMStoLalphabeta, 9 * sizeof(float));
51  memcpy(mtx_inv, mtxLalphabetatoLMS, 9 * sizeof(float));
52  }
53 };
54 
55 } // end namespace pic
56 
57 #endif /* PIC_COLORS_COLOR_SPACE_XYZ_HPP */
ColorConvLMStoLAlphaBeta()
ColorConvLMStoLAlphaBeta.
Definition: color_conv_lms_to_lalphabeta.hpp:35
float mtx_inv[9]
Definition: display.hpp:32
float mtx[9]
Definition: display.hpp:32
The ColorConvLMStoLAlphaBeta class.
Definition: color_conv_lms_to_lalphabeta.hpp:28
Definition: bilateral_separation.hpp:25
The ColorConv class.
Definition: color_conv.hpp:26