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.
data.hh
Go to the documentation of this file.
1 namespace TooN{
2  namespace Internal{
3  template<int N, class P> class Data;
4  }
5 
6 
13  template<int N, class P> struct Operator<Internal::Data<N, P> >
14  {
15  P vals[N];
16 
17  template<int R, int C, class T, class B>
18  void eval(Matrix<R, C, T, B>& m) const
19  {
20  SizeMismatch<(R==-1?-1:(C==-1?-1:(R*C))), N>:: test(m.num_rows()*m.num_cols(), N);
21  for(int r=0, n=0; r < R; r++)
22  for(int c=0; c < C; c++, n++)
23  m[r][c] = vals[n];
24  }
25  };
26 
27  #ifdef DOXYGEN_INCLUDE_ONLY_FOR_DOCS
28 
40  inline Operator<Internal::Data<N, double> > Data(double a, ...);
41 
50  template<typename Precision> inline Operator<Internal::Data<N, Precision> > Data(const Precision& a, ...);
51 
52  #endif
53 
54 }
Everything lives inside this namespace.
Definition: allocator.hh:48
Operator< Internal::Data< 1, double > > Data(double x1)
void eval(Matrix< R, C, T, B > &m) const
Definition: data.hh:18