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.
rgb8.h
Go to the documentation of this file.
1 /*
2  This file is part of the CVD Library.
3 
4  Copyright (C) 2005 The Authors
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with this library; if not, write to the Free Software
18  Foundation, Inc.,
19  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21 #ifndef __RGB8_H
22 #define __RGB8_H
23 
24 #include "is_pod.h"
25 
26 
27 namespace CVD {
28 
30 
33 struct Rgb8
34 {
35  unsigned char red;
36  unsigned char green;
37  unsigned char blue;
38  unsigned char dummy;
39 
41  Rgb8()
42  :
43  red(0), green(0), blue(0), dummy(0)
44  {}
45 
51  Rgb8(unsigned char r, unsigned char g, unsigned char b, unsigned char a=0)
52  :
53  red(r), green(g), blue(b), dummy(a)
54  {}
55 };
56 
57 namespace Internal
58 {
59  template <> struct is_POD<Rgb8>
60  {
61  enum { is_pod = 1 };
62  };
63 }
64 
65 } // end namespace
66 #endif
unsigned char dummy
The 4th byte, usually either ignored or used to represent the alpha value.
Definition: rgb8.h:38
Rgb8(unsigned char r, unsigned char g, unsigned char b, unsigned char a=0)
Definition: rgb8.h:51
Definition: abs.h:24
Rgb8()
Default constructor. Sets all elements to zero.
Definition: rgb8.h:41
unsigned char green
The green component.
Definition: rgb8.h:36
unsigned char red
The red component.
Definition: rgb8.h:35
Definition: rgb8.h:33
unsigned char blue
The blue component.
Definition: rgb8.h:37