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.
Map.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Copyright 2008 Isis Innovation Limited
3 //
4 // This header declares the Map class.
5 // This is pretty light-weight: All it contains is
6 // a vector of MapPoints and a vector of KeyFrames.
7 //
8 // N.b. since I don't do proper thread safety,
9 // everything is stored as lists of pointers,
10 // and map points are not erased if they are bad:
11 // they are moved to the trash list. That way
12 // old pointers which other threads are using are not
13 // invalidated!
14 
15 #ifndef __MAP_H
16 #define __MAP_H
17 #include <vector>
18 #include "se3.h"
19 #include "image.h"
20 
21 struct MapPoint;
22 struct KeyFrame;
23 
24 struct Map
25 {
26  Map();
27  inline bool IsGood() {return bGood;}
28  void Reset();
29 
30  void MoveBadPointsToTrash();
31  void EmptyTrash();
32 
33  std::vector<MapPoint*> vpPoints;
34  std::vector<MapPoint*> vpPointsTrash;
35  std::vector<KeyFrame*> vpKeyFrames;
36 
37  bool bGood;
38 };
39 
40 
41 
42 
43 #endif
44 
bool bGood
Definition: Map.h:37
std::vector< MapPoint * > vpPoints
Definition: Map.h:33
Map()
Definition: Map.cpp:5
std::vector< KeyFrame * > vpKeyFrames
Definition: Map.h:35
std::vector< MapPoint * > vpPointsTrash
Definition: Map.h:34
bool IsGood()
Definition: Map.h:27
Definition: Map.h:24
void EmptyTrash()
Definition: Map.cpp:33
void MoveBadPointsToTrash()
Definition: Map.cpp:19
void Reset()
Definition: Map.cpp:10