PICCANTE  0.4
The hottest HDR imaging library!
nelder_mead_opt_gray_match.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_COMPUTER_VISION_NELDER_MEAD_OPT_GRAY_MATCH_HPP
19 #define PIC_COMPUTER_VISION_NELDER_MEAD_OPT_GRAY_MATCH_HPP
20 
21 #include "../util/std_util.hpp"
22 #include "../util/nelder_mead_opt_base.hpp"
23 #include "../util/array.hpp"
24 
25 namespace pic {
26 
27 #ifndef PIC_DISABLE_EIGEN
28 
30 {
31 public:
32 
33  float *col0, *col1, *tmp;
34  int channels;
35 
43  {
44  this->col0 = new float[channels];
45  this->col1 = new float[channels];
46 
47  tmp = new float[channels];
48 
49  this->channels = channels;
50 
51  memcpy(this->col0, col0, sizeof(float) * channels);
52  memcpy(this->col1, col1, sizeof(float) * channels);
53 
55  }
56 
58  {
62  }
63 
70  float function(float *x, unsigned int n)
71  {
75  }
76 };
77 #endif
78 
79 }
80 
81 #endif // PIC_COMPUTER_VISION_NELDER_MEAD_OPT_GRAY_MATCH_HPP
NelderMeadOptGrayMatch(float *col0, float *col1, int channels)
NelderMeadOptGrayMatch.
Definition: nelder_mead_opt_gray_match.hpp:42
static float normalize(float *data, int n, float norm_sq=-1.0f)
normalize
Definition: array.hpp:257
float * tmp
Definition: nelder_mead_opt_gray_match.hpp:33
T * delete_vec_s(T *data)
delete_vec_s
Definition: std_util.hpp:138
~NelderMeadOptGrayMatch()
Definition: nelder_mead_opt_gray_match.hpp:57
int channels
Definition: nelder_mead_opt_gray_match.hpp:34
static T distanceSq(T *data0, T *data1, int n)
distanceSq
Definition: array.hpp:195
static void mul(T *data, int size, T scale)
mul
Definition: array.hpp:299
float * col1
Definition: nelder_mead_opt_gray_match.hpp:33
The NelderMeadOptBase class.
Definition: nelder_mead_opt_base.hpp:31
Definition: nelder_mead_opt_gray_match.hpp:29
Definition: bilateral_separation.hpp:25
float * col0
Definition: nelder_mead_opt_gray_match.hpp:33