SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
utility_double_int.cpp
Go to the documentation of this file.
1 #include "utility.h"
2 
3 namespace CVD {
4 
5  void differences(const int32_t* a, const int32_t* b, int32_t* diff, unsigned int size)
6  {
7  differences<int32_t, int32_t>(a, b, diff, size);
8  }
9 
10  void differences(const double* a, const double* b, double* diff, unsigned int size)
11  {
12  differences<double, double>(a, b, diff, size);
13  }
14 
15  void add_multiple_of_sum(const double* a, const double* b, const double& c, double* out, unsigned int count)
16  {
17  add_multiple_of_sum<double, double>(a, b, c, out, count);
18  }
19 
20  void assign_multiple(const double* a, const double& c, double* out, unsigned int count)
21  {
22  assign_multiple<double, double>(a, c, out, count);
23  }
24 
25  double inner_product(const double* a, const double* b, unsigned int count)
26  {
27  return inner_product<double>(a, b, count);
28  }
29 
30  double sum_squared_differences(const double* a, const double* b, size_t count)
31  {
33  }
34 
35  long long sum_squared_differences(const byte* a, const byte* b, size_t count)
36  {
38  }
39 
40 }
static R sum_squared_differences(const T *a, const T *b, size_t count)
Definition: utility.h:163
double sum_squared_differences(const T *a, const T *b, size_t count)
Definition: utility.h:192
Definition: abs.h:24
double inner_product(const T *a, const T *b, size_t count)
Definition: utility.h:155
unsigned char byte
Definition: byte.h:28
void add_multiple_of_sum(const A *a, const A *b, const C &c, B *out, size_t count)
Definition: utility.h:137
void assign_multiple(const A *a, const B &c, C *out, size_t count)
Definition: utility.h:146
void differences(const A *a, const A *b, B *diff, size_t count)
Definition: utility.h:128