PICCANTE  0.4
The hottest HDR imaging library!
transform_data.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_FEATURES_MATCHING_TRANSFORM_DATA_HPP
19 #define PIC_FEATURES_MATCHING_TRANSFORM_DATA_HPP
20 
21 namespace pic {
22 
27 {
28 public:
29  int x, y;
30  float angle, scale;
31  float gain, bias;
32  float quality;
33 
38  {
39  this->quality = -1.0f;
40  }
41 
47  TransformData(int x, int y)
48  {
49  this->x = x;
50  this->y = y;
51  this->quality = -1.0f;
52  }
53 
61  TransformData(int x, int y, float angle, float scale)
62  {
63  this->x = x;
64  this->y = y;
65  this->angle = angle;
66  this->scale = scale;
67 
68  this->quality = -1.0f;
69  }
70 
75  void set(float *values)
76  {
77  x = int(values[0]);
78  y = int(values[1]);
79  angle = values[2];
80  scale = values[3];
81  quality = values[4];
82  }
83 
88  void get(float *values)
89  {
90  values[0] = float(x);
91  values[1] = float(y);
92  values[2] = angle;
93  values[3] = scale;
94  values[4] = quality;
95  }
96 };
97 
98 } // end namespace pic
99 
100 #endif /* PIC_FEATURES_MATCHING_TRANSFORM_DATA_HPP */
101 
TransformData(int x, int y)
TransformData.
Definition: transform_data.hpp:47
float quality
Definition: transform_data.hpp:32
The TransformData class.
Definition: transform_data.hpp:26
float bias
Definition: transform_data.hpp:31
float angle
Definition: transform_data.hpp:30
TransformData(int x, int y, float angle, float scale)
TransformData.
Definition: transform_data.hpp:61
int x
Definition: transform_data.hpp:29
int y
Definition: transform_data.hpp:29
float scale
Definition: transform_data.hpp:30
TransformData()
TransformData.
Definition: transform_data.hpp:37
Definition: bilateral_separation.hpp:25
float gain
Definition: transform_data.hpp:31